Skip to content
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-926 Make ReadConcernMajorityNotAvailableYet a retryable read error #1479

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

kkloberdanz
Copy link
Contributor

@kkloberdanz kkloberdanz commented Nov 30, 2023

Please complete the following before merging:

  • Update changelog.
  • Make sure there are generated JSON files from the YAML test files.
  • Test changes in at least one language driver.
  • Test these changes against all server versions and topologies (including standalone, replica set, sharded clusters, and serverless).

See the C Driver implementation for reference.

NotPrimaryNoSecondaryOk 13435
NotPrimaryOrSecondary 13436
PrimarySteppedDown 189
ReadConcernMajorityNotAvailableYet 134
Copy link
Contributor Author

@kkloberdanz kkloberdanz Dec 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: The error named ReadConcernMajorityNotAvailableYet is longer than any existing errors in this list, so I needed to resize the table to fit it in, hence why the diff shows the entire table has changed rather than this single line.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In these cases the "Hide whitespace" changes checkbox is really useful.

@kkloberdanz kkloberdanz marked this pull request as ready for review December 1, 2023 16:10
@kkloberdanz kkloberdanz requested a review from a team as a code owner December 1, 2023 16:10
@kkloberdanz kkloberdanz requested review from isabelatkinson, kevinAlbs and ShaneHarvey and removed request for a team December 1, 2023 16:10
@@ -704,6 +705,8 @@ degraded performance can simply disable ``retryableReads``.
Changelog
=========

:2023-11-30: Add to ReadConcernMajorityNotAvailableYet the list of error codes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add to -> Add

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂️ Thanks for catching that grammar error!

@kkloberdanz kkloberdanz merged commit a0bac5c into mongodb:master Dec 1, 2023
3 checks passed
@kkloberdanz kkloberdanz deleted the DRIVERS-926 branch December 1, 2023 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants