[CDRIVER-4455] SDAM should prioritize electionId over setVersion only on >=6.0 servers Created: 15/Aug/22  Updated: 28/Oct/23  Resolved: 20/Oct/22

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

Type: Improvement Priority: Unknown
Reporter: PM Bot Assignee: Gil Alon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by CDRIVER-4203 SDAM should give priority to election... Closed
Issue split
split from DRIVERS-2412 SDAM should prioritize electionId ove... Implementing
Related
is related to PHPC-2145 SDAM should prioritize electionId ove... Closed
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

Backwards Compatibility: Fully Compatible

 Description   

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



 Comments   
Comment by Githook User [ 20/Oct/22 ]

Author:

{'name': 'Gil Alon', 'email': '47804748+galon1@users.noreply.github.com', 'username': 'galon1'}

Message: CDRIVER-4455 SDAM prioritizes electionId only on >=6.0 servers (#1125)

CDRIVER-4455 Change SDAM to prioritze electionId and add tests
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/798ef09871071bbf48e2f3c851a949c8c47c7fa0

Comment by Gil Alon [ 19/Oct/22 ]

PR: https://github.com/mongodb/mongo-c-driver/pull/1125

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