Skip to content

Commit

Permalink
Update the support version to 2.13 as term-check is merged to 2.x
Browse files Browse the repository at this point in the history
Signed-off-by: Rajiv Kumar Vaidyanathan <[email protected]>
  • Loading branch information
rajiv-kv committed Mar 21, 2024
1 parent 2069bd8 commit d00abd1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
import java.util.function.Consumer;
import java.util.function.Predicate;

import static org.opensearch.Version.V_3_0_0;
import static org.opensearch.Version.V_2_13_0;

/**
* A base class for operations that needs to be performed on the cluster-manager node.
Expand Down Expand Up @@ -299,7 +299,7 @@ protected void doStart(ClusterState clusterState) {
retryOnMasterChange(clusterState, null);
} else {
DiscoveryNode clusterManagerNode = nodes.getClusterManagerNode();
if (clusterManagerNode.getVersion().onOrAfter(V_3_0_0) && localExecuteSupportedByAction()) {
if (clusterManagerNode.getVersion().onOrAfter(V_2_13_0) && localExecuteSupportedByAction()) {
BiConsumer<DiscoveryNode, ClusterState> executeOnLocalOrClusterManager = clusterStateLatestChecker(
this::executeOnLocalNode,
this::executeOnClusterManager
Expand Down

0 comments on commit d00abd1

Please sign in to comment.