[SERVER-25355] Check majority ReadConcern settings in linearizable reads Created: 29/Jul/16  Updated: 25/Jan/17  Resolved: 22/Aug/16

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.3.12

Type: Bug Priority: Major - P3
Reporter: Siyuan Zhou Assignee: Siyuan Zhou
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2016-08-29
Participants:
Linked BF Score: 0

 Description   

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.



 Comments   
Comment by Githook User [ 22/Aug/16 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-25355 Check majority ReadConcern settings in linearizable reads
Branch: master
https://github.com/mongodb/mongo/commit/753766ba3a1ae49dbc6a472f5d821115b8a37826

Generated at Thu Feb 08 04:08:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.