diff --git a/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/IndexLifecycleRunner.java b/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/IndexLifecycleRunner.java index 0aaec3f8426d6..fc2b132af699d 100644 --- a/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/IndexLifecycleRunner.java +++ b/x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/IndexLifecycleRunner.java @@ -188,7 +188,8 @@ boolean couldBeMovedToDeletePhase(final String policy, final IndexMetadata index return false; } final LifecycleExecutionState executionState = indexMetadata.getLifecycleExecutionState(); - if (executionState.phase().equals(TimeseriesLifecycleType.HOT_PHASE) && nonLeapFrogSteps.contains(executionState.action()) == true) { + if (executionState.phase().equals(TimeseriesLifecycleType.HOT_PHASE) + && nonLeapFrogSteps.contains(executionState.action()) == true) { // Don't leap-frog these steps, because the index hasn't rolled over yet. return false; } @@ -463,7 +464,8 @@ void runPolicyAfterStateChange(String policy, IndexMetadata indexMetadata) { } } - if (TimeseriesLifecycleType.DELETE_PHASE.equals(currentStep.getKey().phase()) == false && couldBeMovedToDeletePhase(policy, indexMetadata)) { + if (TimeseriesLifecycleType.DELETE_PHASE.equals(currentStep.getKey().phase()) == false + && couldBeMovedToDeletePhase(policy, indexMetadata)) { logger.info("--> {} could be deleted! moving to delete...", indexMetadata.getIndex().getName()); moveToStep( indexMetadata.getIndex(),