-
Notifications
You must be signed in to change notification settings - Fork 917
GODRIVER-2340 Allow the setting of timeoutMS on operations in the UTR. #955
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
GODRIVER-2340 Allow the setting of timeoutMS on operations in the UTR. #955
Conversation
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.
Looks good. Included an alternate suggestion to the SetZeroTimeout
API.
4082b3d
to
8529ddd
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.
Nice!
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.
Nicely done, LGTM.
8529ddd
to
97b6068
Compare
GODRIVER-2341 Add Timeout to Client, Database, Collection and all basic operations. (#925) GODRIVER-2340 GODRIVER-2405 Test RTT90 monitoring. (#948) GODRIVER-2340 Allow the setting of timeoutMS on operations in the UTR. (#955)
GODRIVER-2340
Syncs the
override-operation-timeout
tests that ensure thattimeoutMS
is set and respected at the operation level (first commit). The Go driver will not actually support settingTimeout
through*Options
on individual operations; instead, we'll expect users to include a timeout on the passed-inContext
, as that is more idiomatic. Modifies therun
function to create aContext
withtimeoutMS
as the timeout iftimeoutMS
is specified in the operation arguments. Modifiesexecute*
functions to set aTimeout
of 0 on the caller of the operation in order to opt-in to behavior gated behind the presence of theTimeout
variable.Opening PRs with
csot-implementation
as the base branch messes with the GH Evergreen CI: so here is a patch I'll keep updated with every commit.