-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
onlineddl_vrepl_stress: fix flakiness caused by timeouts #14295
onlineddl_vrepl_stress: fix flakiness caused by timeouts #14295
Conversation
Signed-off-by: Shlomi Noach <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
return | ||
case <-time.After(singleConnectionSleepInterval): | ||
} | ||
if !errors.Is(err, context.DeadlineExceeded) { // this is an acceptable error |
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.
Since we are handling ctx.Done()
just above and returning, when will it come here with a DeadlineExceeded
?
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.
You're absolutely right. Removing the if
condition.
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
…e of deadline before looking into the error Signed-off-by: Shlomi Noach <[email protected]>
Description
This PR fixes once observed flakiness in
onlineddl_vrepl_stress
CI test, caused by a timeout. The main fix here is to exit when the context is cancelled, before checking the error code.While at it, I've simplified the timeout mechanism to rely solely on
context.WithTimeout()
orcontext.WithCancel()
and removed some superfluous code.Related Issue(s)
Checklist
Deployment Notes