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

Change buffer corruption during MariaDB 11.4 upgrade

    XMLWordPrintable

Details

    Description

      Based on my experience with two MariaDB server upgrades, a following scenario will lead to a change buffer corruption during MariaDB 11.4 upgrade, and block the upgrade:

      1. The server is originally started with an older MariaDB (10.3 or 10.4) with encryption on
      2. And once you try to upgrade it to 11.4 (from 10.11), the change buffer get corrupted

      More details can be found from this closed/incomplete ticket: https://jira.mariadb.org/browse/MDEV-36556

      I have a server where I could share the ibdata1 file and the encryption key.

      mariadbd[48438]: 2025-09-08 17:33:45 0 [Note] Starting MariaDB 11.4.8-MariaDB source revision c4ed889b74ed95fa8b4eaf96610d4c1480b346a4 server_uid uRipApXaQrcoc3JkQGa+WcUKB+c= as process 48438
      mariadbd[48438]: 2025-09-08 17:33:45 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
      mariadbd[48438]: 2025-09-08 17:33:45 0 [Note] InnoDB: Number of transaction pools: 1
      mariadbd[48438]: 2025-09-08 17:33:45 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
      mariadbd[48438]: 2025-09-08 17:33:45 0 [Note] InnoDB: Using Linux native AIO
      mariadbd[48438]: 2025-09-08 17:33:45 0 [Note] InnoDB: innodb_buffer_pool_size_max=128m, innodb_buffer_pool_size=128m
      mariadbd[48438]: 2025-09-08 17:33:45 0 [Note] InnoDB: Completed initialization of buffer pool
      mariadbd[48438]: 2025-09-08 17:33:45 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
      mariadbd[48438]: 2025-09-08 17:33:45 0 [Note] InnoDB: End of log at LSN=1645743
      mariadbd[48438]: 2025-09-08 17:33:45 0 [ERROR] InnoDB: The change buffer is corrupted
      mariadbd[48438]: 2025-09-08 17:33:45 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption
      mariadbd[48438]: 2025-09-08 17:33:45 0 [Note] InnoDB: Starting shutdown...
      mariadbd[48438]: 2025-09-08 17:33:45 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
      mariadbd[48438]: 2025-09-08 17:33:45 0 [Note] Plugin 'FEEDBACK' is disabled.
      mariadbd[48438]: 2025-09-08 17:33:45 0 [Note] Plugin 'wsrep-provider' is disabled.
      mariadbd[48438]: 2025-09-08 17:33:45 0 [Note] Using encryption key id 1 for temporary files
      mariadbd[48438]: 2025-09-08 17:33:45 0 [ERROR] Unknown/unsupported storage engine: InnoDB
      mariadbd[48438]: 2025-09-08 17:33:45 0 [ERROR] Aborting
      

      A similar crash has been also reported in here: https://stackoverflow.com/questions/78230812/upgrading-mariadb-10-11-to-11-3

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jarkko.hyvarinen Jarkko Hyvärinen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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