Make sure all writes/reads of a session target the same replica in MongoDB

Description

When working with replica sets we should make sure that all the write and read ops of a session target the same replica. Otherwise a read might not see previous writes if it is executed against a different replica.

That's easily done for a single flush cycle (which would already be an improvement), but I don't think it can be done with today's GridDialect SPI.

Details: http://docs.mongodb.org/ecosystem/drivers/java-concurrency/

Environment

None

Activity

Show:
Guillaume Smet
May 27, 2016, 9:37 AM

We should try to fix this for 5.1.

Assignee

Unassigned

Reporter

Gunnar Morling

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

Yes, likely

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Critical
Configure