Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-28679

After upgrade to 10.7.3-1 with enabled data-at-rest encryption unable to restore dump file.

Details

    Description

      After an upgrade from 10.6.7 to 10.7.3 we have attempted to export and import a dump. This fails on import with errors like "ERROR 2013 (HY000) at line 13654: Lost connection to server during query". The mariadb crashed on import (error log attached). We than upgraded to 10.7.4 and the import fails too.

      This issue has only manifested with data-at-rest encryption enabled and key checks settings in dump file on an table with more than 58254 table rows (example dump attached).

      Data at rest encryption was enabled with:

      File Key Management

      plugin_load_add = file_key_management
      file_key_management_filename = /etc/mysql/enc/keys.enc
      file_key_management_filekey = FILE:/etc/mysql/enc/.key
      file_key_management_encryption_algorithm = aes_cbc

      InnoDB/XtraDB Encryption

      encrypt_binlog            = ON
      encrypt_tmp_disk_tables   = ON
      encrypt_tmp_files         = ON
      innodb_encrypt_log        = ON
      innodb_encrypt_tables     = ON
      innodb_encryption_threads = 2

      Attachments

        1. crash.sql
          502 kB
        2. error.log
          70 kB

        Issue Links

          Activity

            cmaehler Christopher Mähler created issue -
            cmaehler Christopher Mähler made changes -
            Field Original Value New Value
            cmaehler Christopher Mähler made changes -
            Description After an upgrade from 10.6.7 to 10.7.3 we have attempted to export and import a dump. This fails on import with errors like "ERROR 2013 (HY000) at line 13654: Lost connection to server during query". The mariadb crashed on import (error log attached). We than upgraded to 10.7.4 and the import fails too.

            This issue has only manifested with data-at-rest encryption enabled and key checks settings in dump file on an table with more than 58254 table rows (example dump attached).

            Data at rest encryption was enabled with:

            *File Key Management*
            {code:java}
                plugin_load_add = file_key_management
                file_key_management_filename = /etc/mysql/enc/keys.enc
                file_key_management_filekey = FILE:/etc/mysql/enc/.key
                file_key_management_encryption_algorithm = aes_cbc
            {code}

            *InnoDB/XtraDB Encryption*
            {code:java}
                encrypt_binlog = ON
                encrypt_tmp_disk_tables = ON
                encrypt_tmp_files = ON
                innodb_encrypt_log = ON
                innodb_encrypt_tables = ON
                innodb_encryption_threads = 2
            {code:java}
            After an upgrade from 10.6.7 to 10.7.3 we have attempted to export and import a dump. This fails on import with errors like "ERROR 2013 (HY000) at line 13654: Lost connection to server during query". The mariadb crashed on import (error log attached). We than upgraded to 10.7.4 and the import fails too.

            This issue has only manifested with data-at-rest encryption enabled and key checks settings in dump file on an table with more than 58254 table rows (example dump attached).

            Data at rest encryption was enabled with:

            *File Key Management*

            {code:java}
                plugin_load_add = file_key_management
                file_key_management_filename = /etc/mysql/enc/keys.enc
                file_key_management_filekey = FILE:/etc/mysql/enc/.key
                file_key_management_encryption_algorithm = aes_cbc
            {code}

            *InnoDB/XtraDB Encryption*

            {code:java}
                encrypt_binlog = ON
                encrypt_tmp_disk_tables = ON
                encrypt_tmp_files = ON
                innodb_encrypt_log = ON
                innodb_encrypt_tables = ON
                innodb_encryption_threads = 2
            {code:java}
            cmaehler Christopher Mähler made changes -
            Description After an upgrade from 10.6.7 to 10.7.3 we have attempted to export and import a dump. This fails on import with errors like "ERROR 2013 (HY000) at line 13654: Lost connection to server during query". The mariadb crashed on import (error log attached). We than upgraded to 10.7.4 and the import fails too.

            This issue has only manifested with data-at-rest encryption enabled and key checks settings in dump file on an table with more than 58254 table rows (example dump attached).

            Data at rest encryption was enabled with:

            *File Key Management*

            {code:java}
                plugin_load_add = file_key_management
                file_key_management_filename = /etc/mysql/enc/keys.enc
                file_key_management_filekey = FILE:/etc/mysql/enc/.key
                file_key_management_encryption_algorithm = aes_cbc
            {code}

            *InnoDB/XtraDB Encryption*

            {code:java}
                encrypt_binlog = ON
                encrypt_tmp_disk_tables = ON
                encrypt_tmp_files = ON
                innodb_encrypt_log = ON
                innodb_encrypt_tables = ON
                innodb_encryption_threads = 2
            {code:java}
            After an upgrade from 10.6.7 to 10.7.3 we have attempted to export and import a dump. This fails on import with errors like "ERROR 2013 (HY000) at line 13654: Lost connection to server during query". The mariadb crashed on import (error log attached). We than upgraded to 10.7.4 and the import fails too.

            This issue has only manifested with data-at-rest encryption enabled and key checks settings in dump file on an table with more than 58254 table rows (example dump attached).

            Data at rest encryption was enabled with:

            *File Key Management*

            {code:java}plugin_load_add = file_key_management
            file_key_management_filename = /etc/mysql/enc/keys.enc
            file_key_management_filekey = FILE:/etc/mysql/enc/.key
            file_key_management_encryption_algorithm = aes_cbc{code}

            *InnoDB/XtraDB Encryption*

            {code:java}encrypt_binlog = ON
            encrypt_tmp_disk_tables = ON
            encrypt_tmp_files = ON
            innodb_encrypt_log = ON
            innodb_encrypt_tables = ON
            innodb_encryption_threads = 2{code:java}
            cmaehler Christopher Mähler made changes -
            Description After an upgrade from 10.6.7 to 10.7.3 we have attempted to export and import a dump. This fails on import with errors like "ERROR 2013 (HY000) at line 13654: Lost connection to server during query". The mariadb crashed on import (error log attached). We than upgraded to 10.7.4 and the import fails too.

            This issue has only manifested with data-at-rest encryption enabled and key checks settings in dump file on an table with more than 58254 table rows (example dump attached).

            Data at rest encryption was enabled with:

            *File Key Management*

            {code:java}plugin_load_add = file_key_management
            file_key_management_filename = /etc/mysql/enc/keys.enc
            file_key_management_filekey = FILE:/etc/mysql/enc/.key
            file_key_management_encryption_algorithm = aes_cbc{code}

            *InnoDB/XtraDB Encryption*

            {code:java}encrypt_binlog = ON
            encrypt_tmp_disk_tables = ON
            encrypt_tmp_files = ON
            innodb_encrypt_log = ON
            innodb_encrypt_tables = ON
            innodb_encryption_threads = 2{code:java}
            After an upgrade from 10.6.7 to 10.7.3 we have attempted to export and import a dump. This fails on import with errors like "ERROR 2013 (HY000) at line 13654: Lost connection to server during query". The mariadb crashed on import (error log attached). We than upgraded to 10.7.4 and the import fails too.

            This issue has only manifested with data-at-rest encryption enabled and key checks settings in dump file on an table with more than 58254 table rows (example dump attached).

            Data at rest encryption was enabled with:

            *File Key Management*

            {code:java}plugin_load_add = file_key_management
            file_key_management_filename = /etc/mysql/enc/keys.enc
            file_key_management_filekey = FILE:/etc/mysql/enc/.key
            file_key_management_encryption_algorithm = aes_cbc{code}

            *InnoDB/XtraDB Encryption*

            {code:java}encrypt_binlog = ON
            encrypt_tmp_disk_tables = ON
            encrypt_tmp_files = ON
            innodb_encrypt_log = ON
            innodb_encrypt_tables = ON
            innodb_encryption_threads = 2{code}
            elenst Elena Stepanova made changes -
            Assignee Elena Stepanova [ elenst ]
            elenst Elena Stepanova made changes -
            Component/s Encryption [ 11200 ]
            Component/s Storage Engine - InnoDB [ 10129 ]
            Fix Version/s 10.7 [ 24805 ]
            Fix Version/s 10.8 [ 26121 ]
            Affects Version/s 10.7 [ 24805 ]
            Affects Version/s 10.8 [ 26121 ]
            Assignee Elena Stepanova [ elenst ] Marko Mäkelä [ marko ]
            elenst Elena Stepanova made changes -
            Status Open [ 1 ] Confirmed [ 10101 ]
            marko Marko Mäkelä made changes -
            Assignee Marko Mäkelä [ marko ] Thirunarayanan Balathandayuthapani [ thiru ]
            cmaehler Christopher Mähler made changes -
            thiru Thirunarayanan Balathandayuthapani made changes -
            Status Confirmed [ 10101 ] In Progress [ 3 ]
            thiru Thirunarayanan Balathandayuthapani made changes -
            Assignee Thirunarayanan Balathandayuthapani [ thiru ] Marko Mäkelä [ marko ]
            Status In Progress [ 3 ] In Review [ 10002 ]
            marko Marko Mäkelä made changes -
            Assignee Marko Mäkelä [ marko ] Thirunarayanan Balathandayuthapani [ thiru ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            thiru Thirunarayanan Balathandayuthapani made changes -
            Fix Version/s 10.7.5 [ 27505 ]
            Fix Version/s 10.8.4 [ 27503 ]
            Fix Version/s 10.7 [ 24805 ]
            Fix Version/s 10.8 [ 26121 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]

            People

              thiru Thirunarayanan Balathandayuthapani
              cmaehler Christopher Mähler
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.