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

The committedSnapshot should not be greater than allCommitted when EMRC=false

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.0-rc3, 4.3.1
    • Affects Version/s: 4.3.1
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Repl 2019-07-01, Repl 2019-07-15, Repl 2019-07-29
    • 20

      Currently we start a transaction that performs modifications to documents with snapshot read concern.

      With snapshot read concern, we set the readSource to be the kAllCommittedSnapshot. This can cause build failures in the case where in our evergreen runs, an HMAC key insertion right before we prepopulate our test collection. In this case, since we prepopulate the collection while the WT transaction for the HMAC key insertion is not yet committed, the documents we insert into the test collection never make it into the all committed snapshot. This will cause inconsistencies in our test results. We should pin the committedSnapshot to always be <= allCommitted and also audit all uses of transactions with snapshot read concern to make sure any previous writes outside the transaction that are depended on by the transaction should be using majority write concern.

            Assignee:
            jason.chan@mongodb.com Jason Chan
            Reporter:
            jason.chan@mongodb.com Jason Chan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: