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

Assertion next_checkpoint_no==... in log_t::write_checkpoint()

    XMLWordPrintable

Details

    • Can result in data loss

    Description

      saahil reported a crash with a test case that I simplified as follows:

      --source include/have_innodb.inc
      --source include/have_sequence.inc
       
      SET GLOBAL innodb_log_archive=OFF;
      SET GLOBAL innodb_log_file_size=4*1024*1024;
       
      CREATE TABLE t (a SERIAL, b CHAR(255) NOT NULL) ENGINE=InnoDB;
       
      SET GLOBAL innodb_log_archive=ON;
      SET GLOBAL innodb_log_file_size=8*1024*1024;
       
      INSERT INTO t SELECT SEQ,REPEAT('x',255) FROM seq_1_to_65536;
      DROP TABLE t;
      

      This leads to a debug assertion failure:

      lsn_t log_t::write_checkpoint(lsn_t, lsn_t): Assertion `next_checkpoint_no == uint16_t(4 * is_encrypted()) || (C[-1] && my_betoh64(C[-1]) < d)' failed.
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0d
                  0d
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 2.25h
                  2.25h

                  Git Integration

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