From a78c826880adfc3216baab61bfd5ca6744c54bbc Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Tue, 15 Aug 2023 17:43:46 +0700 Subject: [PATCH] added jdocs --- .../xpack/core/ilm/DownsamplePrepareLifeCycleStateStep.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/DownsamplePrepareLifeCycleStateStep.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/DownsamplePrepareLifeCycleStateStep.java index d935e00be9c42..fa24ca110f665 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/DownsamplePrepareLifeCycleStateStep.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/DownsamplePrepareLifeCycleStateStep.java @@ -17,6 +17,11 @@ import static org.elasticsearch.xpack.core.ilm.DownsampleAction.DOWNSAMPLED_INDEX_PREFIX; +/** + * An ILM step that sets the target index to use in the {@link DownsampleStep}. + * The reason why this is done in a seperate step and stored in {@link LifecycleExecutionState}, + * is because other steps after downsampling also depend on the target index generated here. + */ public class DownsamplePrepareLifeCycleStateStep extends ClusterStateActionStep { private static final Logger LOGGER = LogManager.getLogger(DownsamplePrepareLifeCycleStateStep.class);