• Jan Lindström's avatar
    MDEV-8817: Failing assertion: new_state->key_version != ENCRYPTION_KEY_VERSION_INVALID · 0cf39f40
    Jan Lindström authored
    Analysis: Problem sees to be the fact that we allow creating or altering
    table to use encryption_key_id that does not exists in case where
    original table is not encrypted currently. Secondly we should not
    do key rotation to tables that are not encrypted or tablespaces
    that can't be found from tablespace cache.
    
    Fix: Do not allow creating unencrypted table with nondefault encryption key
    and do not rotate tablespaces that are not encrypted (FIL_SPACE_ENCRYPTION_OFF)
    or can't be found from tablespace cache.
    0cf39f40
innodb-encryption-alter.result 869 Bytes