Check majority ReadConcern settings in linearizable reads

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.3.12
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2016-08-29
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In ReplicationCoordinatorImpl::waitUntilOpTimeForRead(), we check if majority read can be satisfied for the following settings.

      getSettings().isMajorityReadConcernEnabled()
      getReplicationMode()
      _externalState->snapshotsEnabled()
      

      We need to either duplicate them or pull them out of waitUntilOpTimeForRead() to read_concern.cpp. We also need to audit the callers of waitUntilOpTimeForRead() if we change it.

            Assignee:
            Siyuan Zhou
            Reporter:
            Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: