Skip to content

c2c: randomize node shutdown timing in roachtests#101447

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
msbutler:butler-randomize-shutdown
Apr 14, 2023
Merged

c2c: randomize node shutdown timing in roachtests#101447
craig[bot] merged 1 commit intocockroachdb:masterfrom
msbutler:butler-randomize-shutdown

Conversation

@msbutler
Copy link
Copy Markdown
Collaborator

@msbutler msbutler commented Apr 13, 2023

Previously, the c2c/nodeShutdown tests would only execute a shutdown after a high water mark was set and before a cutover timestamp was chosen. This patch randomizes the node shutdown to either occur during the initial scan, during this steady state phase, or during cutover.

This patch also fixes an infra bug that caused /src shutdown tests to run on /dest and /coordinator tests to run on /worker introduced in #101220.

Informs: #89487

Release note: none

Previously, the c2c/nodeShutdown tests would only execute a shutdown after a
high water mark was set and before a cutover timestamp was chosen. This patch
randomizes the node shutdown to either occur during the initial scan, during
this steady state phase, or during cutover.

Informs: cockroachdb#89487

Release note: none
@msbutler msbutler requested a review from stevendanna April 13, 2023 14:48
@msbutler msbutler requested a review from a team as a code owner April 13, 2023 14:48
@msbutler msbutler self-assigned this Apr 13, 2023
@msbutler msbutler requested review from renatolabs and smg260 and removed request for a team April 13, 2023 14:48
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Collaborator

@stevendanna stevendanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable. Thanks!

@msbutler
Copy link
Copy Markdown
Collaborator Author

TFTR!

bors r=stevendanna

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Apr 14, 2023

Build succeeded:

@craig craig bot merged commit f13081c into cockroachdb:master Apr 14, 2023
@msbutler msbutler deleted the butler-randomize-shutdown branch April 24, 2023 13:54
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