Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-5555

Update base write gen to the maximum write gen we have seen in recover

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 8
    • Storage Engines 2020-02-24

      In my fix for WT-5461, test_wt2909_checkpoint_intregrity is failing.

      However, the test will pass if we disable logging.

      When logging is enabled, we will replay the changes to the metadata table from the previous failed checkpoint and skip checkpointing the table if the table is clean.
      In this case, we don't have the chance to bump the metadata write gen to the largest value globally.

      The sequence is like this:

      In the first open:
      Start the first checkpoint.
      Complete the first checkpoint.
      Start the second checkpoint.
      checkpoint a table.
      update metadata through logging.
      The second checkpoint crash.

      Restart wiredtiger:
      Open the first checkpoint.
      Apply changes to metadata from the log.
      Start recovery checkpoint.
      Skip checkpoint all the tables.
      Checkpoint the metadata table with the updates from the log.

            Assignee:
            chenhao.qu@mongodb.com Chenhao Qu
            Reporter:
            chenhao.qu@mongodb.com Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: