Skip to content

Commit

Permalink
Skip prevoting if single-node discovery (#91255)
Browse files Browse the repository at this point in the history
Fixes #89867
  • Loading branch information
kingherc authored Nov 2, 2022
1 parent cfc981a commit 611c9b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1628,6 +1628,10 @@ public void run() {
}

if (prevotingRound != null) {
if (singleNodeDiscovery) {
logger.debug("skip prevoting as single-node discovery is enabled");
return;
}
prevotingRound.close();
}
prevotingRound = preVoteCollector.start(lastAcceptedState, getDiscoveredNodes());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ protected static int defaultInt(Setting<Integer> setting) {
return setting.get(Settings.EMPTY);
}

// Updating the cluster state involves up to 7 delays:
// Updating the cluster state involves up to the following number of delays:
// 1. submit the task to the master service
// 2. state publisher task on master
// 3. master sends out PublishRequests to nodes
Expand Down

0 comments on commit 611c9b8

Please sign in to comment.