Skip to content
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

[v22.3.x] cluster: allow seeds-driven bootstrap when empty_seed_starts_cluster=1 #7501

Merged

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #7390

Previously, empty_seed_starts_cluster=1 meant that the node was
configured to use root-driven bootstrap and that it should expect some
singular node in the cluster to have an empty seeds list. This is the
default, and was mainly there for compatibility reasons. However, this
default is currently explicitly incompatible with seeds-driven
bootstrap, and thus is incompatible with having all node configurations
in the cluster being identical.

To encourage usage of seeds-driven bootstrap, and to allow homogeneous
node configs by default, this commit makes empty_seed_starts_cluster=1
compatible with seeds-driven bootstrap. An empty seed_servers list
still indicates that the configured node should be the root node, but
seeds-driven bootstrap can be used with empty_seed_starts_cluster=1 if:
- there exists no root node among any of the seeds, and
- all seeds meet the existing requirements to perform seeds-driven
  bootstrap.

(cherry picked from commit 4dcfee4)
This adds a simple test to make sure a cluster doesn't successfully form
if empty_seed_starts_cluster is False but the seed_servers are
configured with a root node.

(cherry picked from commit a7fece6)
@vbotbuildovich vbotbuildovich added this to the v22.3.x-next milestone Nov 24, 2022
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Nov 24, 2022
@piyushredpanda piyushredpanda modified the milestones: v22.3.x-next, v22.3.5 Nov 26, 2022
@andrwng andrwng marked this pull request as ready for review November 28, 2022 17:28
@andrwng andrwng requested a review from dlex November 28, 2022 22:31
@dlex dlex merged commit aa5e2ee into redpanda-data:v22.3.x Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants