Skip to content

[Tests] Fix creating ExplainLifecycleRequest with no indices#35828

Merged
cbuescher merged 2 commits intoelastic:masterfrom
cbuescher:fix-35822
Nov 23, 2018
Merged

[Tests] Fix creating ExplainLifecycleRequest with no indices#35828
cbuescher merged 2 commits intoelastic:masterfrom
cbuescher:fix-35822

Conversation

@cbuescher
Copy link
Copy Markdown
Member

We didn't check that the ExplainLifecycleRequest was constructed with at least
one index before, now that we do we must also make sure the tests
mutateInstance() method used in equals/hashCode checks doesn't accidentally
create an empty index array.

Closes #35822

We didn't check that the ExplainLifecycleRequest was constructed with at least
one index before, now that we do we must also make sure the tests
mutateInstance() method used in equals/hashCode checks doesn't accidentally
create an empty index array.

Closes elastic#35822
@cbuescher cbuescher added >test Issues or PRs that are addressing/adding tests v7.0.0 :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. labels Nov 22, 2018
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features

@talevy
Copy link
Copy Markdown
Contributor

talevy commented Nov 22, 2018

thank you @cbuescher! I missed this when I tried to address it here #35804

@cbuescher
Copy link
Copy Markdown
Member Author

@talevy good to know, I think this also needs changing then, wdyt?

https://github.com/elastic/elasticsearch/pull/35804/files#diff-51f7086741e36cd2ad2060d0545165a7R22

@cbuescher cbuescher merged commit 6fb7ce6 into elastic:master Nov 23, 2018
cbuescher pushed a commit that referenced this pull request Nov 23, 2018
We didn't check that the ExplainLifecycleRequest was constructed with at least
one index before, now that we do we must also make sure the tests
mutateInstance() method used in equals/hashCode checks doesn't accidentally
create an empty index array.

Closes #35822
original-brownbear pushed a commit that referenced this pull request Nov 23, 2018
We didn't check that the ExplainLifecycleRequest was constructed with at least
one index before, now that we do we must also make sure the tests
mutateInstance() method used in equals/hashCode checks doesn't accidentally
create an empty index array.

Closes #35822
@cbuescher cbuescher deleted the fix-35822 branch November 27, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. >test Issues or PRs that are addressing/adding tests v6.6.0 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants