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

workload: don't panic on limiter error #41354

Merged

Conversation

nvanbenschoten
Copy link
Member

limiter.Wait can throw the error Wait(n=1) would exceed context deadline
if it is asked to wait for longer than a context deadline. This seems to
happen reliably with a workload wait of 2m. There's no reason we need to
turn this into an panic.

Release justification: Testing only.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

`limiter.Wait` can throw the error `Wait(n=1) would exceed context deadline`
if it is asked to wait for longer than a context deadline. This seems to
happen reliably with a workload wait of 2m. There's no reason we need to
turn this into an panic.

Release justification: Testing only.

Release note: None
@nvanbenschoten
Copy link
Member Author

bors r+

craig bot pushed a commit that referenced this pull request Oct 7, 2019
41354: workload: don't panic on limiter error r=nvanbenschoten a=nvanbenschoten

`limiter.Wait` can throw the error `Wait(n=1) would exceed context deadline`
if it is asked to wait for longer than a context deadline. This seems to
happen reliably with a workload wait of 2m. There's no reason we need to
turn this into an panic.

Release justification: Testing only.

Release note: None

Co-authored-by: Nathan VanBenschoten <nvanbenschoten@gmail.com>
@craig
Copy link
Contributor

craig bot commented Oct 7, 2019

Build succeeded

@craig craig bot merged commit 2034c5b into cockroachdb:master Oct 7, 2019
@nvanbenschoten nvanbenschoten deleted the nvanbenschoten/workloadRampWait branch October 17, 2019 20:42
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.

3 participants