Skip to content

Commit 2111abc

Browse files
authored
Fix TimeSeriesDataStreamsIT.testShrinkActionInPolicyWithoutHotPhase (elastic#123153) (elastic#123736)
This test was muted, got fixed, and then was muted again but the issue wasn't reopened (by accident it seems). Since that was 4 years ago, I'm going to unmute this test and if it's still an issue, the new test automation will open a new issue for it using the current muting mechanism. Relates elastic#70595 (cherry picked from commit 4b31293)
1 parent 89ab257 commit 2111abc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/TimeSeriesRestDriver.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,9 @@ public static String waitAndGetShrinkIndexName(RestClient client, String origina
455455
"GET",
456456
SHRUNKEN_INDEX_PREFIX + "*" + originalIndex + "," + originalIndex + "/_ilm/explain"
457457
);
458+
// Sometimes, the original index might already have been deleted, so we need to ignore unavailable (concrete) indices.
459+
explainRequest.addParameter("ignore_unavailable", Boolean.toString(true));
460+
explainRequest.addParameter("expand_wildcards", "open,hidden");
458461
explainRequest.addParameter("only_errors", Boolean.toString(false));
459462
explainRequest.addParameter("only_managed", Boolean.toString(false));
460463
Response response = client.performRequest(explainRequest);

x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/TimeSeriesDataStreamsIT.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ public void testRolloverIsSkippedOnManualDataStreamRollover() throws Exception {
120120
);
121121
}
122122

123-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/70595")
124123
public void testShrinkActionInPolicyWithoutHotPhase() throws Exception {
125124
createNewSingletonPolicy(client(), policyName, "warm", new ShrinkAction(1, null, false));
126125
createComposableTemplate(client(), template, dataStream + "*", getTemplate(policyName));

0 commit comments

Comments
 (0)