[JAVA-4375] SDAM should give priority to electionId over setVersion when updating topology Created: 25/Oct/21  Updated: 05/Oct/22  Resolved: 05/Oct/22

Status: Closed
Project: Java Driver
Component/s: Cluster Management
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: PM Bot Assignee: Jeffrey Yemin
Resolution: Duplicate Votes: 0
Labels: spec-compliance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates JAVA-4707 Prioritize electionId over setVersion... Closed
Issue split
split from DRIVERS-1954 SDAM should give priority to election... Closed
Related
is related to JAVA-4550 Excessive logging of maxElectionId an... Closed
is related to JAVA-4535 Driver should reconnect to replica se... Closed
Server Compat: 4.4, 5.0, 5.1, 5.3
Quarter: FY23Q3
Upstream Changes Summary:

DRIVERS-1954:

  • Sync spec changes in 5bd06a8
  • Confirm tests fail with current updateRSFromPrimary implementation
  • Update updateRSFromPrimary to
    • Prioritize electionId before setVersion
    • Handle nullish values for both setVersion and electionId
    • always set maxElectionId and maxSetVersion together (they're a tuple value)
  • Confirm tests pass with changes
  • Update April 1 2022: Minor fixes were made, notably the spec files were using hello, where it should have been helloOk, see commit: 316c650 to pull in the latest.
Documentation Changes: Not Needed

 Description   

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

 

See JAVA-4550 for a patch that must be applied to the one that was reverted here.



 Comments   
Comment by Githook User [ 29/Mar/22 ]

Author:

{'name': 'jyemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Revert "Prioritize electionId over setVersion when updating topology (#886)"

This reverts commit a17c52e77f06ecf132ba8bd03dfd188688ac6c7c.

JAVA-4375
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/c7c7787fcc3e0be346dd8b446871a3ab1946190d

Comment by Githook User [ 08/Mar/22 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Prioritize electionId over setVersion when updating topology (#886)

JAVA-4375
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/a17c52e77f06ecf132ba8bd03dfd188688ac6c7c

Generated at Thu Feb 08 09:01:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.