Skip to content

Commit

Permalink
generic gate on view bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellblazer committed Jun 11, 2024
1 parent 33cc83f commit 3530674
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ boolean joined() {
* start a view change if there are any offline members or joining members
*/
void maybeViewChange() {
if (context.size() == 1 && joins.size() < 3) {
if (context.size() == 1 && joins.size() < context.getRingCount() - 1) {
log.info("Do not have minimum cluster size: {} required: {} for: {} on: {}", joins.size() + context.size(),
4, currentView(), node.getId());
view.scheduleViewChange();
Expand Down

0 comments on commit 3530674

Please sign in to comment.