Skip to content

Commit

Permalink
Gather system index mappings versions when a capable node becomes master
Browse files Browse the repository at this point in the history
  • Loading branch information
williamrandolph committed Dec 5, 2023
1 parent e842463 commit ec18558
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ public ClusterState execute(BatchExecutionContext<JoinTask> batchExecutionContex
nodeFeatures.put(node.getId(), nodeJoinTask.features());
nodesChanged = true;
}
if (Objects.equals(compatibilityVersionsMap.get(node.getId()), nodeJoinTask.compatibilityVersions()) == false) {
logger.debug("updating node [{}] compatibility versions {}", node.getId(), nodeJoinTask.compatibilityVersions());
compatibilityVersionsMap.put(node.getId(), nodeJoinTask.compatibilityVersions());
nodesChanged = true;
}
} else {
try {
CompatibilityVersions compatibilityVersions = nodeJoinTask.compatibilityVersions();
Expand Down

0 comments on commit ec18558

Please sign in to comment.