[BUG][Segment Replication] The segment replication type doesn't seem to work with index or component templates. #11230
Labels
bug
Something isn't working
Indexing:Replication
Issues and PRs related to core replication framework eg segrep
v2.12.0
Issues and PRs related to version 2.12.0
Describe the bug
The component/index template with replication type 'Segment' doesn't reflect on new indexes. It seems the replication type is still showing as 'Document'. I initially updated the index template, and the replication type didn't change to segment. Later on, I updated the component template, and only two index patterns were updated out of 20.
To Reproduce
Steps to reproduce the behavior:
Scenario 1:
{ "index_templates": [ { "name": "kk-execution-ppe", "index_template": { "index_patterns": [ "kk-execution-ppe-*" ], "template": { "settings": { "index": { "replication": { "type": "SEGMENT" }, "plugins": { "index_state_management": { "rollover_alias": "kk-execution-ppe" } } } } }, "composed_of": [ "kk" ], "priority": 100 } } ] }
{ "kk-execution-ppe-kishore": { "settings": { "index": { "replication": { "type": "DOCUMENT" }, "mapping": { "total_fields": { "limit": "20000" } }, "indexing": { "slowlog": { "level": "warn", "reformat": "false", "threshold": { "index": { "warn": "10s", "trace": "500ms", "debug": "2s", "info": "5s" } } } }, ......... ..........
Scenario 2:
Component Template with Segment replication type
{ "component_templates": [ { "name": "kk", "component_template": { "template": { "settings": { "index": { "replication": { "type": "SEGMENT" }, "mapping": { "total_fields": { "limit": "20000" } }, ......
But indexes still creating with Document type except two index pattern.
{ "kk-legacy-ppe-000297": { "settings": { "index": { "replication": { "type": "DOCUMENT" }, "mapping": { "total_fields": { "limit": "20000" } }, "indexing": { "slowlog": { "level": "warn", "reformat": "false", "threshold": { "index": { "warn": "10s", "trace": "500ms", "debug": "2s", "info": "5s" } } } }, "plugins": { "index_state_management": { "rollover_alias": "kk-legacy-ppe" } }, "provided_name": "kk-legacy-ppe-000297", "creation_date": "1700120178163",
But the one created with Segment replication
{ "kk-client-ppe-000187": { "settings": { "index": { "replication": { "type": "SEGMENT" }, "mapping": { "total_fields": { "limit": "20000" } }, "indexing": { "slowlog": { "level": "warn", "reformat": "false", "threshold": { "index": { "warn": "10s", "trace": "500ms", "debug": "2s", "info": "5s" } } } },
Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: