Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for rollover to happen in testShrinkActionInPolicyWithoutHotPhase #70658

Conversation

andreidan
Copy link
Contributor

This adds an extra step in testShrinkActionInPolicyWithoutHotPhase to wait for the
rollover to happen before trying to read the shrink index name from the execution
state.

This also removes testShrinkAfterRollover because it was passing for the
wrong reasons (the shrunk index name it was composing never existed
anymore) and the scenario is already extensively tested in
ShrinkActionIT, without using a full policy that is subject to
flakiness as the managed index might get deleted before we pick up the
shrink index name from the execution state.

Fixes #70595

This also removes testShrinkAfterRollover because it was passing for the
wrong reasons (the srhunk index name it was composing never existed
anymore) and the scenario is already extensively tested in
`ShrinkActionIT`, without using a full policy that is subject to
flakiness as the managed index might get deleted before we pick up the
shrink index name from the execution state.
@andreidan andreidan added >test Issues or PRs that are addressing/adding tests :Data Management/ILM+SLM Index and Snapshot lifecycle management v8.0.0 v7.13.0 labels Mar 22, 2021
@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Mar 22, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

@andreidan andreidan requested a review from dakrone March 22, 2021 15:38
Copy link
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
: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.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] TimeSeriesDataStreamsIT testShrinkActionInPolicyWithoutHotPhase failing
4 participants