[CSHARP-4298] SDAM should prioritize electionId over setVersion only on >=6.0 servers Created: 15/Aug/22  Updated: 23/Mar/23  Resolved: 30/Jan/23

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

Type: Improvement Priority: Unknown
Reporter: PM Bot Assignee: Boris Dogadov
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by CSHARP-3934 SDAM should give priority to election... Closed
Issue split
split from DRIVERS-2412 SDAM should prioritize electionId ove... Implementing
Quarter: FY23Q3
Upstream Changes Summary:

DRIVERS-2412:

  • Sync spec changes in 37c32c
  • Confirm tests fail with current updateRSFromPrimary implementation
  • Summary of updateRSFromPrimary changes:
    • If maxWireVersion 17 or greater
    • Prioritize electionId before setVersion
    • Handle nullish values for both setVersion and electionId
    • always set maxElectionId and maxSetVersion together (they are a tuple value)
  • Confirm tests pass with changes

Join #drivers-2412-sdam-should-prioritize-electionid-over-setversion on slack for any questions


 Description   

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



 Comments   
Comment by Githook User [ 30/Jan/23 ]

Author:

{'name': 'BorisDog', 'email': 'BorisDog@users.noreply.github.com', 'username': 'BorisDog'}

Message: CSHARP-4298: SDAM should prioritize electionId over setVersion only on >=6.0 servers (#936)
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/5d1353dc000613c46184636c8a30c86c46970905

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