-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Fix FullClusterRestartIT#testSnapshotRestore #38795
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
Conversation
This test failed on 7.1 when running full cluster restart tests against pre-7.0 clusters (e.g. 6.6 clusters). The fix includes adding the "include_type_name" parameter to the template requests only if the template uses types (if we are testing restarts from pre-7 verions) and fixed the expected type in the templates after the cluster restart (custom type names like "doc" which are still possible e.g. in 6.6 are converted to "_doc" on post-7 clusters). Closes elastic#38603
|
Pinging @elastic/es-search |
jtibshirani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cbuescher for working on fixing this. I left a couple questions to make sure I understand the approach.
qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java
Outdated
Show resolved
Hide resolved
qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java
Outdated
Show resolved
Hide resolved
|
@jtibshirani thanks, I hope I was able to answer you questions and updated the comment a bit. Hope this is okay now. |
|
@cbuescher I understand your confusion, I left a short explanation, let me know if I should elaborate on the comment further. I'm glad these edge cases are gone again on master. |
|
@jtibshirani thanks, I pushed another commit with your latest suggestion so this is ready for a final look. |
As a follow up to #38795 this PR removes a lot of special case handling that was necessary for full cluster restart checks going from 6.x to 7.x clusters but are not required anymore going from 7 to 8.
jtibshirani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
This test failed on 7.1 when running full cluster restart tests against pre-7.0
clusters (e.g. 6.6 clusters). The fix includes adding the "include_type_name"
parameter to the template requests only if the template uses types (if we are
testing restarts from pre-7 verions) and fixed the expected type in the
templates after the cluster restart (custom type names like "doc" which are
still possible e.g. in 6.6 are converted to "_doc" on post-7 clusters).
Closes #38603