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

Make watch history indices hidden (#52962) #52974

Merged
merged 7 commits into from
Mar 6, 2020

Conversation

jaymode
Copy link
Member

@jaymode jaymode commented Feb 28, 2020

This commit updates the template used for watch history indices with
the hidden index setting so that new indices will be created as hidden.

Relates #50251
Backport of #52962

This commit updates the template used for watch history indices with
the hidden index setting so that new indices will be created as hidden.

Relates elastic#50251
@elasticmachine
Copy link
Collaborator

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

@jaymode jaymode requested a review from gwbrown March 2, 2020 19:42
@jaymode
Copy link
Member Author

jaymode commented Mar 2, 2020

@gwbrown I am requesting a review because the backport was not trivial. Essentially the BWC tests failed due to watcher failing to start after the first node was upgraded. The issue is that the index.hidden setting is not known on older nodes and therefor the template could not be put and watcher refused to start. I worked around this by adding the previous template and dynamically swapping to the new one once all nodes were 7.7 or newer.

A side note, I noticed that the ILM/SLM template also had the same issue based on log output. It might be ok for rolling upgrades, but I figured I would mention it just in case it was not.

The LocalIndicesCleanerTests#testHandlesWatcherHistory creates random
watch history indices with a version of 1-20. When the version is 11,
this matches the existing watch history template that has the
index.hidden setting set to true and the check for indices in this test
did not include hidden indices. The change here updates the indices
options to include hidden indices.

Closes elastic#53025
@jaymode
Copy link
Member Author

jaymode commented Mar 3, 2020

@elasticmachine run elasticsearch-ci/1

Copy link
Contributor

@gwbrown gwbrown 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants