Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
124285: roachtest: save cluster earlier if debug-always is set r=srosenberg a=DarrylWong 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 Co-authored-by: DarrylWong <darryl@cockroachlabs.com>
- Loading branch information