This commit is contained in:
Tal Levy 2018-03-26 18:12:38 -07:00
parent 57821cd55a
commit 083c563cf6
2 changed files with 1 additions and 4 deletions

View File

@ -150,8 +150,7 @@ public class IndexLifecycleService extends AbstractComponent
// returns current step to execute. If settings are null, then the first step to be executed in
// this policy is returned.
Step currentStep = policyRegistry.getStep(policyName, phase, action, stepName);
ClusterState newClusterState = executeStepUntilAsync(currentStep, clusterState, client, nowSupplier, idxMeta.getIndex());
return currentState;
return executeStepUntilAsync(currentStep, clusterState, client, nowSupplier, idxMeta.getIndex());
}
@Override

View File

@ -64,8 +64,6 @@ public class PolicyStepsRegistry {
}
}
public Lifecycle
/**
* returns the {@link Step} that matches the name and
* policy specified. This is used by {@link ClusterState}