-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: SDAM
-
None
Description of Drivers Ticket:
This work has been spun off from DRIVERS-640.
Reduce race conditions in SDAM error handling. In summary, drivers will update their SDAM and error handling logic to:
- Add topologyVersion field to ServerDescription.
- Ignore stale errors based on generation number and topologyVersion.
- Add SDAM spec tests for topologyVersion comparison.
Spec PR: https://github.com/mongodb/specifications/pull/781
Spec commit:
Author:
Message: SPEC-1663 Reduce race conditions in SDAM error handling (#781)
Add topologyVersion field to ServerDescription.
Add SDAM spec tests for topologyVersion comparison.
Clients ignore stale errors based on generation number and topologyVersion.
Branch: master
https://github.com/mongodb/specifications/commit/7dd9c008be6edaf65368787d5e91c2ac3aeb95b8
See DRIVERS-1187 for updated details.
- causes
-
PYTHON-2236 Reset the server pool only after marking the server Unknown
- Closed
- depends on
-
PYTHON-2205 Connection pool can return connections from previous generations
- Closed
- is duplicated by
-
MOTOR-531 Reduce race conditions in SDAM error handling
- Closed
- is related to
-
PYTHON-2211 MongoClient does not mark a server unknown when connection handshake fails with a network timeout error
- Closed
-
PYTHON-2212 MongoClient does not mark a server Unknown when handling NotMaster errors embedded in a write concern error
- Closed
-
PYTHON-2206 Rename pool_id to generation to better match CMAP and SDAM specs
- Closed
-
PYTHON-2116 Add __repr__ to monitoring event classes
- Closed