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

roachtest: during c2c/shutdown, shutdown main driver if shutdown executor fails #110267

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

msbutler
Copy link
Collaborator

@msbutler msbutler commented Sep 8, 2023

During #110166, the c2c/shutdown test fataled while the job shutdown executor was running, yet the test kept running for quite a while because the goroutine that manages the c2c job had not realized the test failed. This patch refactors the c2c/shutdown tests such that when the job shutdown executor detects a failure, it cancels the context used by the goroutine managing the c2c job.

Informs #110166

Release note: none

…utor fails

During cockroachdb#110166, the c2c/shutdown test fataled while the job shutdown executor
was running, yet the test kept running for quite a while because the goroutine
that manages the c2c job had not realized the test failed. This patch refactors
the c2c/shutdown tests such that when the job shutdown executor detects a
failure, it cancels the context used by the goroutine managing the c2c job.

Informs cockroachdb#110166

Release note: none
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@msbutler msbutler changed the title roachtest: during c2c/shutdown, shutdown main driver if shutdown exec… roachtest: during c2c/shutdown, shutdown main driver if shutdown executor fails Sep 8, 2023
@msbutler msbutler marked this pull request as ready for review September 8, 2023 18:03
@msbutler msbutler requested a review from a team as a code owner September 8, 2023 18:03
@msbutler msbutler requested review from rachitgsrivastava, DarrylWong and stevendanna and removed request for a team, rachitgsrivastava and DarrylWong September 8, 2023 18:03
@msbutler
Copy link
Collaborator Author

TFTR!

bors r=stevendanna

@craig
Copy link
Contributor

craig bot commented Sep 11, 2023

Build succeeded:

@craig craig bot merged commit 0d073f4 into cockroachdb:master Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants