mariadb/mysql-test/suite/encryption/r
Jan Lindström 352d27ce36 MDEV-13557: Startup failure, unable to decrypt ibdata1
Fixes also MDEV-13488: InnoDB writes CRYPT_INFO even though
encryption is not enabled.

Problem was that we created encryption metadata (crypt_data) for
system tablespace even when no encryption was enabled and too early.
System tablespace can be encrypted only using key rotation.

Test innodb-key-rotation-disable, innodb_encryption, innodb_lotoftables
require adjustment because INFORMATION_SCHEMA INNODB_TABLESPACES_ENCRYPTION
contain row only if tablespace really has encryption metadata.

fil_crypt_set_thread_cnt: Send message to background encryption threads
if they exits when they are ready. This is required to find tablespaces
requiring key rotation if no other changes happen.

fil_crypt_find_space_to_rotate: Decrease the amount of time waiting
when nothing happens to better enable key rotation on startup.

fsp_header_init: Write encryption metadata to page 0 only if tablespace is
encrypted or encryption is disabled by table option.

i_s_dict_fill_tablespaces_encryption : Skip tablespaces that do not
contain encryption metadata. This is required to avoid too early
wait condition trigger in encrypted -> unencrypted state transfer.

open_or_create_data_files: Do not create encryption metadata
by default to system tablespace.
2017-08-29 14:23:34 +03:00
..
aria_tiny.result
create_or_replace.result
debug_key_management.result
encrypt_and_grep.result
encryption_force.result
filekeys_emptyfile.result
filekeys_encfile.result
filekeys_encfile_bad.result
filekeys_encfile_badfile.result
filekeys_encfile_file.result
filekeys_encfile_no.result
filekeys_nofile.result
filekeys_syntax.result
filekeys_tooshort.result
filekeys_unencfile.result
innochecksum.result
innodb-bad-key-change.result
innodb-bad-key-change2.result
innodb-bad-key-change3.result
innodb-bad-key-change4.result
innodb-checksum-algorithm,32k.rdiff
innodb-checksum-algorithm,64k.rdiff
innodb-checksum-algorithm.result
innodb-compressed-blob.result
innodb-discard-import-change.result
innodb-discard-import.result
innodb-encr-threads.result
innodb-encryption-alter.result
innodb-encryption-disable.result
innodb-first-page-read.result MDEV-13557: Startup failure, unable to decrypt ibdata1 2017-08-29 14:23:34 +03:00
innodb-force-corrupt.result
innodb-key-rotation-disable.result MDEV-13557: Startup failure, unable to decrypt ibdata1 2017-08-29 14:23:34 +03:00
innodb-log-encrypt-crash.result
innodb-log-encrypt.result
innodb-missing-key.result
innodb-page_encryption-32k.result
innodb-page_encryption.result
innodb-page_encryption_compression.result
innodb-page_encryption_log_encryption.result
innodb-read-only.result
innodb-redo-badkey.result
innodb-redo-nokeys.result
innodb_encryption-page-compression.result
innodb_encryption.result MDEV-13557: Startup failure, unable to decrypt ibdata1 2017-08-29 14:23:34 +03:00
innodb_encryption_discard_import.result
innodb_encryption_filekeys.result
innodb_encryption_is.result
innodb_encryption_row_compressed.result
innodb_encryption_tables.result
innodb_first_page.result
innodb_lotoftables.result MDEV-13557: Startup failure, unable to decrypt ibdata1 2017-08-29 14:23:34 +03:00
innodb_onlinealter_encryption.result
innodb_page_encryption_key_change.result
innodb_scrub.result
innodb_scrub_background.result
second_plugin-12863.result
tempfiles.result