Skip to content

Commit

Permalink
Fix a compile error of typo
Browse files Browse the repository at this point in the history
Signed-off-by: Tianli Feng <[email protected]>
  • Loading branch information
Tianli Feng committed Jul 19, 2022
1 parent 7058782 commit 4364983
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.opensearch.ExceptionsHelper;
import org.opensearch.action.ActionListener;
import org.opensearch.cluster.ClusterChangedEvent;
import org.opensearch.cluster.ClusterManagerNodeChangePredicate;
import org.opensearch.cluster.ClusterState;
import org.opensearch.cluster.ClusterStateObserver;
import org.opensearch.cluster.ClusterStateTaskConfig;
Expand Down Expand Up @@ -182,7 +183,7 @@ private void sendShardAction(
) {
ClusterStateObserver observer = new ClusterStateObserver(currentState, clusterService, null, logger, threadPool.getThreadContext());
DiscoveryNode clusterManagerNode = currentState.nodes().getClusterManagerNode();
Predicate<ClusterState> changePredicate = MClusterManagerNodeChangePredicate.build(currentState);
Predicate<ClusterState> changePredicate = ClusterManagerNodeChangePredicate.build(currentState);
if (clusterManagerNode == null) {
logger.warn("no cluster-manager known for action [{}] for shard entry [{}]", actionName, request);
waitForNewClusterManagerAndRetry(actionName, observer, request, listener, changePredicate);
Expand Down

0 comments on commit 4364983

Please sign in to comment.