Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-45525

ReplBatcher should explicitly read at kNoTimestamp

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.6, 4.3.4
    • Affects Version/s: 4.2.2
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Repl 2020-02-10
    • 13

      The ReplBatcher thread reads from the storage engine here. This results in using AutoGetCollectionForReadCommand. The various rules of that helper allow the thread to read at kLastApplied.

      This behavior can cause rollback to crash in debug builds. Specifically while reconstructing prepared transactions. This WT assertion fails when the prepare timestamp is older than any active readers. The ReplBatcher, however, may still be reading at kLastApplied.

            Assignee:
            matthew.russotto@mongodb.com Matthew Russotto
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: