Skip to content

Conversation

nielsbauman
Copy link
Contributor

@nielsbauman nielsbauman commented Feb 21, 2025

This test was muted, got fixed, and then was muted again but the issue wasn't reopened (by accident it seems).

It frequently failed because the test wasn't able to obtain the shrunken index name (even though it got created). The two reasons for this are: 1. the explain lifecycle request would fail once the original index had been deleted (which is the default behaviour for missing concrete indices) and 2. even though the shrunken index name was included in the explain lifecycle request, it never got included in the response because the name included a wildcard (to match the random string added in the shrunken index name) and the shrunken index was hidden, but the shrunken index name didn't start with a dot (.) (source).

The fixes turned out to be rather straightforward: 1. add ignore_unavailable=true and 2. add expand_wildcards=open,hidden to the explain lifecycle request. This prevents the request from failing when the original index is already deleted and includes the hidden shrunken index. By applying the fix in TimeSeriesRestDriver, all tests that make use of waitAndGetShrinkIndexName will benefit from this fix.

Relates #70595

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
@nielsbauman nielsbauman added >test Issues or PRs that are addressing/adding tests :Data Management/ILM+SLM Index and Snapshot lifecycle management Team:Data Management Meta label for data/management team v9.1.0 labels Feb 21, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@nielsbauman nielsbauman marked this pull request as draft February 21, 2025 15:23
@nielsbauman
Copy link
Contributor Author

The test immediately failed on the first CI (it didn't fail locally the one time I ran it) :D

@nielsbauman nielsbauman changed the title Remove @AwaitsFix from testShrinkActionInPolicyWithoutHotPhase Fix TimeSeriesDataStreamsIT.testShrinkActionInPolicyWithoutHotPhase Feb 27, 2025
@nielsbauman nielsbauman marked this pull request as ready for review February 27, 2025 12:56
@nielsbauman
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x
9.0
8.18
8.17
8.16

Questions ?

Please refer to the Backport tool documentation

nielsbauman added a commit to nielsbauman/elasticsearch that referenced this pull request Feb 28, 2025
…elastic#123153)

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)
nielsbauman added a commit to nielsbauman/elasticsearch that referenced this pull request Feb 28, 2025
…elastic#123153)

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)
nielsbauman added a commit to nielsbauman/elasticsearch that referenced this pull request Feb 28, 2025
…elastic#123153)

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)
nielsbauman added a commit to nielsbauman/elasticsearch that referenced this pull request Feb 28, 2025
…elastic#123153)

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)
elasticsearchmachine pushed a commit that referenced this pull request Feb 28, 2025
…#123153) (#123735)

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 #70595

(cherry picked from commit 4b31293)
elasticsearchmachine pushed a commit that referenced this pull request Feb 28, 2025
…#123153) (#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 #70595

(cherry picked from commit 4b31293)
elasticsearchmachine pushed a commit that referenced this pull request Feb 28, 2025
…#123153) (#123737)

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 #70595

(cherry picked from commit 4b31293)
elasticsearchmachine pushed a commit that referenced this pull request Feb 28, 2025
…#123153) (#123738)

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 #70595

(cherry picked from commit 4b31293)
elasticsearchmachine pushed a commit that referenced this pull request Feb 28, 2025
…#123153) (#123739)

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 #70595

(cherry picked from commit 4b31293)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :Data Management/ILM+SLM Index and Snapshot lifecycle management Team:Data Management Meta label for data/management team >test Issues or PRs that are addressing/adding tests v8.16.6 v8.17.4 v8.18.1 v8.19.0 v9.0.1 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants