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: save cluster earlier if debug-always is set #124285

Merged
merged 1 commit into from
May 17, 2024

Conversation

DarrylWong
Copy link
Contributor

When the --debug-always flag is passed, we mark the cluster as saved to let the cluster destroy know not to destroy it.

Previously, we only marked a cluster as saved at the end of a test. However, if the caller terminated the test through ctrl c, which also destroys all clusters, it would lead to a race condition where sometimes the cluster would not be saved in time and get destroyed.

This change moves the cluster save to immediantly after the cluster is created.

Release note: none
Fixes: none
Epic: none

When the --debug-always flag is passed, we mark the cluster
as saved to let the cluster destroy know not to destroy it.

Previously, we only marked a cluster as saved at the end of
a test. However, if the caller terminated the test through
ctrl c, which also destroys all clusters, it would lead to a
race condition where sometimes the cluster would not be saved
in time and get destroyed.

This change moves the cluster save to immediantly after the
cluster is created.

Release note: none
Fixes: none
Epic: none
@DarrylWong DarrylWong requested a review from a team as a code owner May 16, 2024 15:59
@DarrylWong DarrylWong requested review from nameisbhaskar and vidit-bhat and removed request for a team May 16, 2024 15:59
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@DarrylWong
Copy link
Contributor Author

TFTR!

bors r=srosenberg

@craig craig bot merged commit f53b133 into cockroachdb:master May 17, 2024
22 checks passed
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.

None yet

3 participants