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-1389 Make ExceededTimeLimit a retryable reads error #1478

Merged
merged 9 commits into from
Nov 30, 2023

Conversation

kkloberdanz
Copy link
Contributor

@kkloberdanz kkloberdanz commented Nov 28, 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.

@kkloberdanz kkloberdanz requested a review from a team as a code owner November 28, 2023 15:20
@kkloberdanz kkloberdanz requested review from isabelatkinson, kevinAlbs and a team and removed request for a team November 28, 2023 15:20
Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
Copy link
Contributor

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

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

Test passes in the Go driver: https://spruce.mongodb.com/version/656776023627e0d2079bcbbc
The Go driver already considers error 262 a retryable read and does not need changes to pass this test.

source/retryable-reads/retryable-reads.rst Outdated Show resolved Hide resolved
source/retryable-reads/tests/unified/ExceededTimeLimit.yml Outdated Show resolved Hide resolved
source/retryable-reads/tests/unified/ExceededTimeLimit.yml Outdated Show resolved Hide resolved
source/retryable-reads/tests/unified/ExceededTimeLimit.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@isabelatkinson isabelatkinson left a comment

Choose a reason for hiding this comment

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

The test passes in Rust with 262 added to our list of read-retryable error codes. Changes LGTM mod other reviewers' comments.

source/retryable-reads/tests/unified/ExceededTimeLimit.yml Outdated Show resolved Hide resolved
@kkloberdanz
Copy link
Contributor Author

Thanks everyone for the reviews. I've implemented the suggestions, and the PR is ready for another round of review.

Copy link
Contributor

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@jmikola jmikola left a comment

Choose a reason for hiding this comment

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

LGTM w/ or w/o the suggested comment revision.


schemaVersion: "1.3"

runOnRequirements:
Copy link
Member

Choose a reason for hiding this comment

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

Noted that these requirements are consistent with the legacy tests in https://github.com/mongodb/specifications/blob/master/source/retryable-reads/tests/legacy/find.yml

source/retryable-reads/tests/unified/exceededTimeLimit.yml Outdated Show resolved Hide resolved
Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
@kkloberdanz kkloberdanz merged commit 5786a46 into mongodb:master Nov 30, 2023
3 checks passed
@kkloberdanz kkloberdanz deleted the DRIVERS-1389 branch November 30, 2023 15:55
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