Skip to content

Commit

Permalink
cluster_discovery: simplify fetching bootstrap info
Browse files Browse the repository at this point in the history
The original implementation of seeds-driven bootstrap had pieces of the
various validation required for bootstrap strewn about startup. Because
of this, I found it difficult to reason about what validations are done
when, and what work may be duplicated, while reading through the code.

This commit puts all validations up front so we determine whether we are
a founder immediately and use a cached value thereafter.

This is mostly addressing review comments on redpanda-data#6744.
  • Loading branch information
andrwng committed Oct 21, 2022
1 parent 115d416 commit e6daf4c
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 312 deletions.
Loading

0 comments on commit e6daf4c

Please sign in to comment.