-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
useILM will prevent index template creation #3599
Conversation
I just tested this locally with the following steps:
There's a good chance I've misunderstood the problem you're describing. Are you able to list the steps to reproduce this problem locally? |
Hello,
|
The unit test appears to be failing:
Ah yes, you're right. I observed this later on; the rolled over |
85b7355
to
e3a49fe
Compare
Codecov Report
@@ Coverage Diff @@
## main #3599 +/- ##
==========================================
- Coverage 96.54% 96.53% -0.02%
==========================================
Files 264 264
Lines 15447 15449 +2
==========================================
Hits 14914 14914
- Misses 449 451 +2
Partials 84 84
Continue to review full report at Codecov.
|
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.
LGTM, thanks! Just a suggestion around adding a comment to explain why we shouldn't create index templates when ILM is enabled, to avoid confusion.
@@ -199,7 +199,7 @@ func createSpanWriter( | |||
Archive: archive, | |||
UseReadWriteAliases: cfg.GetUseReadWriteAliases(), | |||
}) | |||
if cfg.IsCreateIndexTemplates() { | |||
if cfg.IsCreateIndexTemplates() && !cfg.GetUseILM() { |
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.
I suggest adding a comment to explain why we shouldn't create index templates when ILM is enabled.
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.
Of course
The index template should be created by es-rollover. Without this, it was mandatory to use --es.create-index-templates=false with --es.use-ilm, otherwise it would override the index template with an empty lifecycle.name thus preventing the rollover to work Signed-off-by: Raphael Bizos <r.bizos@criteo.com>
Signed-off-by: Raphael Bizos <r.bizos@criteo.com>
Signed-off-by: Raphael Bizos <r.bizos@criteo.com>
@rbizos Ah, I think the builds are failing with |
@albertteoh done here #3610 |
Problem
With ILM, index patter overridden without lifecycle policy set by collector if not explicitly disabled with --es.create-index-templates=false
Proposal
Making useILM disable index creation to prevent this issue to happen
Alternative
Make the actual cmd flags mutually exclusive. This is more explicit but is breaking
rbizos@12bff25