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

innodb_log_recovery_target fails to prevent a log checkpoint write

    XMLWordPrintable

Details

    • Can result in unexpected behaviour

    Description

      The test innodb.log_archive that was added in MDEV-37949 is failing frequently:

      13.0 a848493c6fe031f23606144420c1ca1e467cbd81

      innodb.log_archive 'mmap'                w2 [ fail ]
              Test ended at 2026-08-11 12:37:41
       
      CURRENT_TEST: innodb.log_archive
      --- C:/a/server/server/mysql-test/suite/innodb/r/log_archive.result	2026-08-11 12:06:01.462876300 +0000
      +++ C:\a\server\server\mysql-test\suite\innodb\r\log_archive.reject	2026-08-11 12:37:40.683306200 +0000
      @@ -62,9 +62,9 @@
       SELECT variable_name, variable_value FROM information_schema.global_status
       WHERE variable_name LIKE 'INNODB_LSN%';
       variable_name	variable_value
      -INNODB_LSN_CURRENT	18446744073705357295
      -INNODB_LSN_FLUSHED	18446744073705357295
      -INNODB_LSN_LAST_CHECKPOINT	18446744073705357279
      +INNODB_LSN_CURRENT	18446744073705357311
      +INNODB_LSN_FLUSHED	18446744073705357311
      +INNODB_LSN_LAST_CHECKPOINT	18446744073705357295
       INNODB_LSN_ARCHIVED	18446744073705357279
       # restart: --innodb-log-recovery-start=0 --innodb-log-buffer-size=5m
       SELECT variable_name, variable_value FROM information_schema.global_status
       
      Result content mismatch
      

      This failure has been observed both for the mmap and pread test variants. The difference of INNODB_LSN_CURRENT is 16, which corresponds to the size of a FILE_CHECKPOINT record. All test steps before this have been executed with either innodb_read_only or innodb_log_recovery_start being enabled. Therefore, writes to the log file should have been prevented. Yet, an unexpected checkpoint is occurring.

      Similar failures have also been observed on an ARMv8 based Apple macOS. On IBM System Z (s390x) and AMD64 the failure is much less frequent.

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              marko Marko Mäkelä
              Marko Mäkelä Marko Mäkelä
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 0d
                  0d
                  Remaining:
                  Remaining Estimate - 2d
                  2d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified

                  Git Integration

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