-
Notifications
You must be signed in to change notification settings - Fork 67
SWIFT-587 Retryable Reads #341
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
Conversation
kmahar
left a comment
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.
basically LGTM, couple small things
| func testRetryableReads() throws { | ||
| let skippedTestKeywords = [ | ||
| "findOne", | ||
| "changeStream", // TODO: SWIFT-648: Unskip this test |
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.
so does libmongoc skip this test or how did they not catch this before?
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.
they run the test and apparently it passes. From talking with Kevin, it seems that maybe they're just not verifying all the results.
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.
🤷♀
|
|
||
| func testRetryableReads() throws { | ||
| let skippedTestKeywords = [ | ||
| "findOne", |
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.
I recently opened SWIFT-643 about adding a findOne method, add a TODO here?
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.
done
This PR exposes the
retryReadsoption onClientOptionsto the public API and introduces the retryable reads test runner. It also updates much of our general spec test runner to work with crud v2 test files. As part of that, the retryable writes runner was separated into its own thing.