-
Type:
New Feature
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Component/s: None
-
None
The Read Concern specification details the specifics of implementing read concern in your driver. You'll find that it is very similar to write concern.
How it looks like for commands:
db.runCommand({ find: ...., readConcern : { level: “[majority|local]” } });
Note: readConcern is only supported for the new find command helper, not legacy OP_QUERY queries.
New URI option:
mongodb://server:27017/db?readConcernLevel=[majority|local]
The commands that accept read concern are listed below:
- find
- aggregate without $out
- mapReduce when the result is inline
- distinct
- count
- parallelCollectionScan
- geoNear
- geoSearch
You only need to add support for these commands to your helper methods. Users using the runCommand method on your database object will need to supply a readConcern manually.
- depends on
-
CDRIVER-837 Add support for the readConcern option
-
- Closed
-
-
CSHARP-1438 Support ReadConcern
-
- Closed
-
-
CXX-694 Support "read committed" isolation level where "committed" means confimed by the voting majority of a replica set
-
- Closed
-
-
CXX-695 Support "read committed" isolation level where "committed" means confimed by the voting majority of a replica set
-
- Closed
-
-
JAVA-2002 Support ReadConcern
-
- Closed
-
-
NODE-541 Support "read committed" isolation level where "committed" means confimed by the voting majority of a replica set
-
- Closed
-
-
PHPC-448 Add support for the readConcern option
-
- Closed
-
-
PHPLIB-130 Add support for the readConcern option
-
- Closed
-
-
PYTHON-981 Support readConcern option
-
- Closed
-
-
RUBY-1038 Support ReadConcern
-
- Closed
-
-
RUST-12 Add integration tests for readConcern using command monitoring
-
- Closed
-
- is depended on by
-
SERVER-20214 Stop supporting majority read concern level with MapReduce and Aggregation $out
-
- Closed
-
- related to
-
SERVER-18022 Support "read committed" isolation level where "committed" means confirmed by the voting majority of a replica set
-
- Closed
-