-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Data Management/Indices APIsAPIs to create and manage indices and templatesAPIs to create and manage indices and templates>bug>docsGeneral docs changesGeneral docs changesTeam:Data ManagementMeta label for data/management teamMeta label for data/management teamTeam:DocsMeta label for docs teamMeta label for docs team
Description
Elasticsearch version (bin/elasticsearch --version): 7.12.1
Description of the problem including expected versus actual behavior:
There could as well be 2 unrelated problems:
-
When cloning an index,
number_of_replicasof the target index is not kept the same as the source index. -
If there is an index template that sets the
number_of_replicasto 0, this is being ignored as well, although the target index name matches the template pattern
Steps to reproduce:
PUT _index_template/template_1
{
"index_patterns": ["mytest*"],
"template": {
"settings": {
"number_of_replicas" : 0
}
}
}
PUT mytest1
GET mytest1
Observe that number_of_replicas = 0, as expected.
PUT /mytest1/_settings
{
"settings": {
"index.blocks.write": true
}
}
POST /mytest1/_clone/mytest2
GET mytest2
Observe that number_of_replicas = 1, so the value was neither copied over from the source index, nor the index template was respected.
Metadata
Metadata
Assignees
Labels
:Data Management/Indices APIsAPIs to create and manage indices and templatesAPIs to create and manage indices and templates>bug>docsGeneral docs changesGeneral docs changesTeam:Data ManagementMeta label for data/management teamMeta label for data/management teamTeam:DocsMeta label for docs teamMeta label for docs team