-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DRIVERS-2412: add pre 6.0 condition to stale primary logic #1309
Conversation
840edfb
to
3a383b5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests pass locally and have a patch running to confirm here: https://spruce.mongodb.com/version/63362b4b850e610d084de99a/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC
Could you add a changelog entry as well?
source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst
Outdated
Show resolved
Hide resolved
source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst
Outdated
Show resolved
Hide resolved
source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst
Outdated
Show resolved
Hide resolved
source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two minor comments otherwise LGTM.
source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst
Outdated
Show resolved
Hide resolved
source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm!
Maintain
updateRSFromPrimary
behavior on pre 6.0 servers for electionId/setVersion checking. And include tests from before the change.Please complete the following before merging:
Test these changes against all server versions and topologies (including standalone, replica set, sharded clusters, and serverless).