useILM will prevent index template creation#3599
useILM will prevent index template creation#3599rbizos wants to merge 3 commits intojaegertracing:mainfrom
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.
|
albertteoh
left a comment
There was a problem hiding this comment.
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.
| UseReadWriteAliases: cfg.GetUseReadWriteAliases(), | ||
| }) | ||
| if cfg.IsCreateIndexTemplates() { | ||
| if cfg.IsCreateIndexTemplates() && !cfg.GetUseILM() { |
There was a problem hiding this comment.
I suggest adding a comment to explain why we shouldn't create index templates when ILM is enabled.
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