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

Do not remove unstable updates of an in-memory database btree page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.0, 5.0.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      Storage - Ra 2021-04-05

      Description

      As described in BF-20122, sometimes in in-memory database configuration, the index inconsistencies are observed as missing index entries.

      WT doesn't write any pages to disk during reconciliation of a page in the in-memory database configuration and it retains the written new page image into the memory. But these pages are marked as clean once the reconciliation is finished and removed the unstable updates in the corner scenario where the selected update to write to disk has both start and stop time windows where the start time window is globally visible and but not the stop.

      During the RTS process, the page is marked as clean, RTS tried to check the aggregated timestamp values from the written image and there is no disk image exists for in-memory database, so this page is skipped to process during rollback to stable. Skipping these clean pages leads to an inconsistency problem.

      To fix this problem, fix not to remove the unstable updates from the page if they are not globally visible and change the default behaviour of RTS to process for unstable updates whenever an aggregated time window is not available.

        Attachments

          Activity

            People

            Assignee:
            haribabu.kommi Haribabu Kommi
            Reporter:
            haribabu.kommi Haribabu Kommi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: