Log [initial_master_nodes] on formation failure#36466
Conversation
|
Pinging @elastic/es-distributed |
bleskes
left a comment
There was a problem hiding this comment.
LGTM. Thanks. Left an optional suggestion
There was a problem hiding this comment.
I think technically we check for is not set on this node, shall we just use that?
There was a problem hiding this comment.
We check if it's set here:
If it's not set, and nor are any of the other settings listed here, then we auto-bootstrap after a few seconds which leads to a different log message that starts master not discovered or elected yet and doesn't mention bootstrapping.
However if bootstrapping hasn't occurred by the time we write this message then this can't have happened, so the problem is actually that it's empty:
There was a problem hiding this comment.
My comment was just targeted at the if clause:
INITIAL_MASTER_NODES_SETTING.get(Settings.EMPTY).equals(INITIAL_MASTER_NODES_SETTING.get(settings))```
There was a problem hiding this comment.
This also checks it's not empty, since the default for this setting is empty.
There was a problem hiding this comment.
It technically checks it's not set or set to the default (which is empty). As I said this was just a suggestion. I'm good anyway.
Today we log a slightly cryptic "cluster bootstrapping is disabled on this node" message if bootstrapping hasn't been configured. Since there is today only one way to bootstrap the cluster it seems preferable to spell out exactly which setting is missing.
c41fa2e to
a330fac
Compare
|
Transient failure: @elasticmachine please run the Gradle build tests 1 |
* elastic/master: (36 commits) Add check for minimum required Docker version (elastic#36497) Minor search controller changes (elastic#36479) Add default methods to DocValueFormat (elastic#36480) Fix the mixed cluster REST test explain/11_basic_with_types. Modify `BigArrays` to take name of circuit breaker (elastic#36461) Move LoggedExec to minimumRuntime source set (elastic#36453) added 6.5.4 version Add test logging for elastic#35644 Tests- added helper methods to ESRestTestCase for checking warnings (elastic#36443) SQL: move requests' parameters to requests JSON body (elastic#36149) [Zen2] Respect the no_master_block setting (elastic#36478) Require soft-deletes when access changes snapshot (elastic#36446) Switch more tests to zen2 (elastic#36367) [Painless] Add extensive tests for def to primitive casts (elastic#36455) Add setting to bypass Rollover action (elastic#36235) Try running CI against Zulu (elastic#36391) [DOCS] Reworked the shard allocation filtering info. (elastic#36456) Log [initial_master_nodes] on formation failure (elastic#36466) converting ForbiddenPatternsTask to .java (elastic#36194) fixed typo ...
Today we log a slightly cryptic "cluster bootstrapping is disabled on this
node" message if bootstrapping hasn't been configured. Since there is today
only one way to bootstrap the cluster it seems preferable to spell out exactly
which setting is missing.