[CSHARP-3938] PossiblePrimary must not be checked for wire version compatibility of MaxStalenessSeconds Created: 26/Oct/21  Updated: 28/Oct/23  Resolved: 02/Nov/21

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.14.0

Type: Spec Change Priority: Minor - P4
Reporter: PM Bot Assignee: James Kovacs
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
Upstream Changes Summary:

DRIVERS-1912:
The Max Staleness specification requires drivers check wire version for support of maxStalenessSeconds:

Clients are required to throw an error if maxStalenessSeconds is set, and any server in the topology has maxWireVersion less than 5.

Servers of type PossiblePrimary must not be considered in this check, since they have no known maxWireVersion.

Backwards Compatibility: Fully Compatible

 Description   

This ticket was split from DRIVERS-1912, please see that ticket for a detailed description.



 Comments   
Comment by Githook User [ 02/Nov/21 ]

Author:

{'name': 'James Kovacs', 'email': 'jkovacs@post.harvard.edu', 'username': 'JamesKovacs'}

Message: CSHARP-3938: Sync'd max-staleness tests with spec repo. Mapped PossiblePrimary to Unknown in spec tests since .NET/C# driver does not consider PossiblePrimary as a replica set state. (#670)
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/dd1d3554a1f64bb002778fb5c08b3e46f50553e6

Comment by James Kovacs [ 01/Nov/21 ]

The .NET/C# driver does not use the server type PossiblePrimary. PossiblePrimary is considered Unknown and MaxStalenessSeconds checks already ignore server version from buildInfo for Unknown nodes. This will change to a maxWireVersion check once CSHARP-3480 is implemented.

Generated at Wed Feb 07 21:46:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.