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

changefeedccl: block testfeed closure on canceled status #83226

Merged
merged 1 commit into from
Jun 29, 2022

Conversation

samiskin
Copy link
Contributor

@samiskin samiskin commented Jun 22, 2022

Resolves #82794

TestChangefeedNemeses would sometimes flake on cloudstorage sink likely
due to the feed writing files during the tempdirectory closing. Stress
testing it on cloudstorage sink failed at 160 executions.

This small change blocks feed.Close() on actually seeing the "cancelled"
job status to ensure the feed is completely stopped prior to Close
completing. Running cloudstorage Nemeses did not fail after 500+ executions.

Release note: None

@samiskin samiskin requested a review from a team as a code owner June 22, 2022 21:25
@samiskin samiskin requested review from ajwerner and removed request for a team June 22, 2022 21:25
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@samiskin samiskin requested a review from miretskiy June 22, 2022 21:26
TestChangefeedNemeses would sometimes flake on cloudstorage sink likely
due to the feed writing files during the tempdirectory closing.  Stress
testing it on cloudstorage sink failed at 160 executions.

This small change blocks feed.Close() on actually seeing the "cancelled"
job status to ensure the feed is completely stopped prior to Close
completing.

Release note: None
@samiskin samiskin force-pushed the cdc-testfeed-close-wait branch from fd3368e to b91b729 Compare June 27, 2022 03:16
@samiskin
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Jun 28, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jun 28, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jun 29, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jun 29, 2022

Build succeeded:

@craig craig bot merged commit d757e5f into cockroachdb:master Jun 29, 2022
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.

ccl/changefeedccl: TestChangefeedBackfillCheckpoint failed
3 participants