Skip to content

roachprod: fix initialization of 1-node clusters#114025

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
renatolabs:rc/fix-init-1-node-clusters
Nov 8, 2023
Merged

roachprod: fix initialization of 1-node clusters#114025
craig[bot] merged 1 commit intocockroachdb:masterfrom
renatolabs:rc/fix-init-1-node-clusters

Conversation

@renatolabs
Copy link
Copy Markdown

In #113718, we changed how initialization is done in order to remove the concurrent start of cockroach process. In that change, we also unified the shouldInit variable that controls whether the cluster should be initialized with cockroach init. However, that particular change was a mistake: it conflated cluster initialization with whether "startup tasks" should run.

This commit fixes that issue by separating the two concepts; now one-node clusters should still skip cockroach init, but they will run startup tasks as usual.

Fixes: #114015.

Release note: None

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@renatolabs renatolabs marked this pull request as ready for review November 8, 2023 16:09
@renatolabs renatolabs requested a review from a team as a code owner November 8, 2023 16:09
@renatolabs renatolabs requested review from DarrylWong and herkolategan and removed request for a team November 8, 2023 16:09
@renatolabs
Copy link
Copy Markdown
Author

renatolabs commented Nov 8, 2023

@renatolabs renatolabs added backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only backport-23.2.x PAST MAINTENANCE SUPPORT: 23.2 patch releases via ER request only labels Nov 8, 2023
In cockroachdb#113718, we changed how initialization is done in order to remove
the concurrent start of cockroach process. In that change, we also
unified the `shouldInit` variable that controls whether the cluster
should be initialized with `cockroach init`. However, that particular
change was a mistake: it conflated cluster initialization with whether
"startup tasks" should run.

This commit fixes that issue by separating the two concepts; now
one-node clusters should still skip `cockroach init`, but they will
run startup tasks as usual.

Fixes: cockroachdb#114015.

Release note: None
@renatolabs renatolabs force-pushed the rc/fix-init-1-node-clusters branch from 535f900 to dd55d15 Compare November 8, 2023 16:43
@renatolabs
Copy link
Copy Markdown
Author

TFTRs!

bors r=RaduBerinde,herkolategan

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Nov 8, 2023

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only backport-23.2.x PAST MAINTENANCE SUPPORT: 23.2 patch releases via ER request only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

roachtest: cdc/schemareg failed

4 participants