Skip to content

DOCS-5324: quorum reads with findAndModify() #2518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

ksuarz
Copy link
Contributor

@ksuarz ksuarz commented Jan 14, 2016

Details the process of performing quorum or linearlizable reads via the findAndModify command. The data read is guaranteed to be both durable and fresh if directed at the primary of a replica set.

kay-kim and others added 3 commits January 14, 2016 14:35
This cherry-picks 0461523 to apply it again,
undoing the reversion in cf6ab08.

The changes in source/reference/write-concern.txt have been ignored in favor of
more recent changes.
Rather than issuing a getLastError, you can use a write concern of ``majority``
to ensure that findAndModify reads only data that cannot be rolled back.
This explicitly details the reasons why one would require a "quorum read" over
the existing majority and local read concerns. It also adds a note warning that
this procedure is much more expensive than a regular read.

This commit also fixes some grammar and explicitly mentions that this technique
is new in MongoDB 3.2.
@kay-kim
Copy link
Contributor

kay-kim commented Jan 14, 2016

merged!

@kay-kim kay-kim closed this Jan 14, 2016
@ksuarz ksuarz deleted the quorum-read branch January 20, 2016 21:15
mongo-cr-bot pushed a commit that referenced this pull request Feb 7, 2023
#2518)

* DOCSP-27277 - EOL Reference Cleanup for Database Commands (#2327) (#2515)

* DOCSP-27277 - EOL Reference Cleanup for Database Commands (#2327)

* DOCSP-27277 EOL version reference cleanup for Database Commands

* Refactors version references to use directive

* Version cleanup createIndexes and serverStatus

* EOL version cleanup for currentOp

* EOL version cleanup for currentOp

* EOL version cleanup for listDatabases

* EOL version cleanup for listDatabases

* EOL version cleanup for listCollections

* EOL version cleanup for listCollections

* EOL version cleanup for usersInfo

* EOL reference fixes for dbHash and updateUser

* EOL reference fixes for killOp replSetSyncFrom

* Fixes per Kyle Suarez

* Fixes per Kyle Suarez.

Co-authored-by: Kyle Suarez <[email protected]>

---------

Co-authored-by: Kyle Suarez <[email protected]>

* Reverts text to fix build errors

* Fixes indentation from cherry-pick

---------

Co-authored-by: Kyle Suarez <[email protected]>

* Fixes build error

---------

Co-authored-by: Kyle Suarez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants