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

Remove difference between readConcern:"majority" and readConcern:"snapshot"

    • Type: Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication, Storage
    • None
    • v4.0
    • Repl 2018-12-03, Repl 2018-12-17

      Right now there is a subtle difference between readConcern: "majority" and readConcern : "snapshot" when using transactions. A transaction done at readConcern : "majority" may provide a snapshot that reflects oplog holes – that is, we may see writes that are ordered after writes we do not see. This seems like less than useful behavior and it complicates the code, so we should remove it.

      This would involve removing the SpeculativeTransactionOpTime enum in transaction_participant.cpp, and all behavior associated with it (we should always use AllCommitted behavior). We can also remove RecoveryUnit::ReadSource::kLastAppliedSnapshot from the recovery_unit, and all associated behavior.

            Assignee:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: