Skip to content

Cherry-pick #9617 to 6.x: Fix issue with ILM that write index was created before template was loaded#9628

Merged
ruflin merged 1 commit intoelastic:6.xfrom
ruflin:backport_9617_6.x
Dec 18, 2018
Merged

Cherry-pick #9617 to 6.x: Fix issue with ILM that write index was created before template was loaded#9628
ruflin merged 1 commit intoelastic:6.xfrom
ruflin:backport_9617_6.x

Conversation

@ruflin
Copy link
Copy Markdown
Contributor

@ruflin ruflin commented Dec 18, 2018

Cherry-pick of PR #9617 to 6.x branch. Original message:

The write index for ILM was created before the template was loaded. This meant the first template did not contain all the mappings and policy for ILM so was never rolled over. This change makes sure the template is loaded for ILM is setup up and adds a test to confirm it.

Further ILM was not respected when running metricbeat setup --template. This is now changed too.

mockbeat was modified to send multiple events instead of just one to allow the new tests.

…oaded (elastic#9617)

The write index for ILM was created before the template was loaded. This meant the first template did not contain all the mappings and policy for ILM so was never rolled over. This change makes sure the template is loaded for ILM is setup up and adds a test to confirm it.

Further ILM was not respected when running `metricbeat setup --template`. This is now changed too.



(cherry picked from commit 36cee51)
Copy link
Copy Markdown
Contributor

@ph ph left a comment

Choose a reason for hiding this comment

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

LGTM i've rekicked the tests on travis.

@ruflin ruflin merged commit d0679af into elastic:6.x Dec 18, 2018
@ruflin ruflin deleted the backport_9617_6.x branch December 19, 2018 07:57
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.

2 participants