Skip to content

Commit 8285c83

Browse files
committed
Align RolloverStep's name with other step names (#35655)
RolloverStep previously had a name of "attempt_rollover", which was inconsistent with all other step names due it its use of an underscore instead of a dash.
1 parent 6d99eb9 commit 8285c83

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/reference/ilm/apis/explain.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ phase completes.
139139
"action": "rollover",
140140
"action_time_millis": 1538475653317,
141141
"action_time": "2018-10-15T13:45:22.577Z",
142-
"step": "attempt_rollover",
142+
"step": "attempt-rollover",
143143
"step_time_millis": 1538475653317,
144144
"step_time": "2018-10-15T13:45:22.577Z",
145145
"phase_execution": {
@@ -250,7 +250,7 @@ the step that failed and the step info provides information about the error.
250250
"step": "ERROR",
251251
"step_time_millis": 1538475653317,
252252
"step_time": "2018-10-15T13:45:22.577Z",
253-
"failed_step": "attempt_rollover", <1>
253+
"failed_step": "attempt-rollover", <1>
254254
"step_info": { <2>
255255
"type": "resource_already_exists_exception",
256256
"reason": "index [test-000057/H7lF9n36Rzqa-KfKcnGQMg] already exists",

docs/reference/ilm/getting-started-ilm.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ managed indices.
179179
"phase_time_millis": 1538475653317,
180180
"action": "rollover", <4>
181181
"action_time_millis": 1538475653317,
182-
"step": "attempt_rollover", <5>
182+
"step": "attempt-rollover", <5>
183183
"step_time_millis": 1538475653317,
184184
"phase_execution": {
185185
"policy": "datastream_policy",

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/RolloverStep.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* Unconditionally rolls over an index using the Rollover API.
2020
*/
2121
public class RolloverStep extends AsyncActionStep {
22-
public static final String NAME = "attempt_rollover";
22+
public static final String NAME = "attempt-rollover";
2323

2424
public RolloverStep(StepKey key, StepKey nextStepKey, Client client) {
2525
super(key, nextStepKey, client);

x-pack/plugin/ilm/qa/multi-node/src/test/java/org/elasticsearch/xpack/indexlifecycle/TimeSeriesLifecycleActionsIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public void testMoveToRolloverStep() throws Exception {
161161
" \"next_step\": {\n" +
162162
" \"phase\": \"hot\",\n" +
163163
" \"action\": \"rollover\",\n" +
164-
" \"name\": \"attempt_rollover\"\n" +
164+
" \"name\": \"attempt-rollover\"\n" +
165165
" }\n" +
166166
"}");
167167
client().performRequest(moveToStepRequest);

0 commit comments

Comments
 (0)