-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
changfeedccl: deflake TestAlterChangefeedTelemetry #91884
Conversation
Release note: None
The job system clears the lease asyncronously after cancelation. This lease clearing transaction can cause a restart in the alter changefeed transaction, which will lead to different feature counter counts. Thus, we want to wait for the lease clear. However, the lease clear isn't guaranteed to happen, so we only wait a few seconds for it. Release note: None
@miretskiy I pushed another commit to de-flake the test where I found this. Mind taking a look. |
bors r+ I'm going to merge this to try to relieve the impact of the flake, we can follow up with a better fix if necessary. |
// clear. However, the lease clear isn't guaranteed to | ||
// happen, so we only wait a few seconds for it. | ||
waitForNoLease := func() { | ||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) |
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.
Should the period be increased if under race?
helpers_test.go has withTimeout function that can help with this, plus assertPayloadsTimeout() is a helper that returns timeout adjusted for race (might need renaming)
bors r+ |
Build succeeded: |
The job system clears the lease asyncronously after cancelation. This
lease clearing transaction can cause a restart in the alter changefeed
transaction, which will lead to different feature counter
counts. Thus, we want to wait for the lease clear. However, the lease
clear isn't guaranteed to happen, so we only wait a few seconds for
it.
Epic: None
Release note: None