Skip to content

Fix FullClusterRestartIT#testSnapshotRestore#38795

Merged
cbuescher merged 5 commits intoelastic:7.xfrom
cbuescher:fix-38603
Feb 15, 2019
Merged

Fix FullClusterRestartIT#testSnapshotRestore#38795
cbuescher merged 5 commits intoelastic:7.xfrom
cbuescher:fix-38603

Conversation

@cbuescher
Copy link
Copy Markdown
Member

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

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
@cbuescher cbuescher added :Search Foundations/Mapping Index mappings, including merging and defining field types >test-failure Triaged test failures from CI v7.2.0 labels Feb 12, 2019
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search

Copy link
Copy Markdown
Contributor

@jtibshirani jtibshirani left a 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.

@cbuescher
Copy link
Copy Markdown
Member Author

@jtibshirani thanks, I hope I was able to answer you questions and updated the comment a bit. Hope this is okay now.

@cbuescher
Copy link
Copy Markdown
Member Author

@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.

@cbuescher
Copy link
Copy Markdown
Member Author

@jtibshirani thanks, I pushed another commit with your latest suggestion so this is ready for a final look.

cbuescher pushed a commit that referenced this pull request Feb 15, 2019
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.
Copy link
Copy Markdown
Contributor

@jtibshirani jtibshirani left a 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.

@cbuescher cbuescher merged commit 9f6c77f into elastic:7.x Feb 15, 2019
@cbuescher cbuescher deleted the fix-38603 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

:Search Foundations/Mapping Index mappings, including merging and defining field types >test-failure Triaged test failures from CI v7.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants