Skip to content

Conversation

@probakowski
Copy link
Contributor

This adds some protection in ILM history rollover test to remove its flakiness

@probakowski probakowski added >test Issues or PRs that are addressing/adding tests :Data Management/ILM+SLM Index and Snapshot lifecycle management v8.0.0 v7.10.0 labels Sep 4, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/ILM+SLM)

@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Sep 4, 2020
SearchResponse search = client().prepareSearch(firstIndex).setQuery(matchQuery("index", firstIndex)).setSize(0).get();
assertThat(search.getHits().getTotalHits().value, is(9L));
} catch (Exception e) {
fail(e.getMessage());
Copy link
Contributor

@andreidan andreidan Sep 4, 2020

Choose a reason for hiding this comment

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

Thanks for fixing this Przemko.

Can you add a comment on why this is needed please? it's not obvious assertBusy fails on the first non-AssertionError exception. We could also use assertHitCount maybe?

Is it worth also increasing the timeout of assertBusy to 30 seconds?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added a comment and switched to assertHitCount. I don't think we need to increase timeout - we should have to wait for at most 5s for all ILM history items to be index

@probakowski
Copy link
Contributor Author

@elasticmachine update branch

Copy link
Contributor

@andreidan andreidan left a comment

Choose a reason for hiding this comment

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

LGTM

@probakowski probakowski merged commit 69b8fe4 into elastic:master Sep 8, 2020
@probakowski probakowski deleted the ilm-history-rollover-fix branch September 8, 2020 09:13
@probakowski
Copy link
Contributor Author

This was backported to 7.x as part of #61661

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 v7.10.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants