-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
roachprod: set default cluster settings when starting #88716
roachprod: set default cluster settings when starting #88716
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @herkolategan and @renatolabs)
-- commits
line 2 at r1:
nit: no trailing periods in the commit message titles.
-- commits
line 14 at r1:
nit: this will only close the first issue - you need to put each issue on a separate line with its own "Fixes" prefix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
nit: I notice initializeCluster
is followed by setClusterSettings
twice - if this is a common pattern, might it make sense to abstract away into a function which does both?
Right. Technically, it's called twice only on the first node (i.e., |
Nope. It's invoked at most once on each node. In case of single-node clusters which are started via |
Yes.
#88514 broke that because of I misread the meaning of the |
fbdf786
to
bc362ba
Compare
In cockroachdb#88514, the cluster start logic was refactored to reuse the same code across `init` and `start`, fixing a bug in the former. However, the refactoring overlooked the fact that we previously always set the default cluster settings when there's more than one node in the cluster. This fixes that by setting the default cluster settings in that case; one particularly important cluster setting is the license key, necessary for some roachtests. Fixes cockroachdb#88660. Fixes cockroachdb#88665. Fixes cockroachdb#88666. Fixes cockroachdb#88710. Release note: None
bc362ba
to
ed443e1
Compare
bors r=yuzefovich,srosenberg,smg260 TFTRs! |
Build succeeded: |
In #88514, the cluster start logic was refactored to reuse the same code across
init
andstart
, fixing a bug in the former. However, the refactoring overlooked the fact that we previously always set the default cluster settings when there's more than one node in the cluster.This fixes that by setting the default cluster settings in that case; one particularly important cluster setting is the license key, necessary for some roachtests.
Fixes #88660
Fixes #88665
Fixes #88666
Fixes #88710.
Release note: None