Skip to content

Commit 61af11d

Browse files
committed
Clarify why bootstrapping was cancelled
1 parent c4555ac commit 61af11d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/main/java/org/elasticsearch/cluster/coordination/ClusterBootstrapService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,15 @@ private boolean checkWaitRequirements(Set<DiscoveryNode> nodes) {
173173
}
174174
if (matchingNodes.size() > 1) {
175175
bootstrappingPermitted.set(false);
176-
logger.warn("bootstrapping cancelled: [{}] matches {}", requirement, matchingNodes);
176+
logger.warn("bootstrapping cancelled: requirement [{}] matches multiple nodes: {}", requirement, matchingNodes);
177177
return false;
178178
}
179179

180180
for (final DiscoveryNode matchingNode : matchingNodes) {
181181
if (selectedNodes.add(matchingNode) == false) {
182182
bootstrappingPermitted.set(false);
183-
logger.warn("bootstrapping cancelled: [{}] matches {}", matchingNode, initialMasterNodes.stream()
184-
.filter(r -> matchesRequirement(matchingNode, requirement)).collect(Collectors.toList()));
183+
logger.warn("bootstrapping cancelled: node [{}] matches multiple requirements: {}", matchingNode,
184+
initialMasterNodes.stream().filter(r -> matchesRequirement(matchingNode, r)).collect(Collectors.toList()));
185185
return false;
186186
}
187187
}

0 commit comments

Comments
 (0)