• Jan Lindström's avatar
    MDEV-8410: Changing file-key-management to example-key-management causes crash and no real error · 18b0176a
    Jan Lindström authored
    MDEV-8409: Changing file-key-management-encryption-algorithm causes crash and no real info why
    
    Analysis: Both bugs has two different error cases. Firstly, at startup
    when server reads latest checkpoint but requested key_version,
    key management plugin or encryption algorithm or method is not found
    leading corrupted log entry. Secondly, similarly when reading system
    tablespace if requested key_version, key management plugin or encryption
    algorithm or method is not found leading buffer pool page corruption.
    
    Fix: Firsly, when reading checkpoint at startup check if the log record
    may be encrypted and if we find that it could be encrypted, print error
    message and do not start server. Secondly, if page is buffer pool seems
    corrupted but we find out that there is crypt_info, print additional
    error message before asserting.
    18b0176a
log0recv.cc 104 KB