Index settings are incorrectly set to null when the setting is set by an index template.
Take the below situation (observed in the field). While this may not be logical, we should provide better resilience or safety to avoid this kind of situation.
1) User can create a legacy template with the following definition:
Elasticsearch Version
7.17.3
Installed Plugins
No response
Java Version
bundled
OS Version
Deployment in ESS
Problem Description
Index settings are incorrectly set to
null
when the setting is set by an index template.Take the below situation (observed in the field). While this may not be logical, we should provide better resilience or safety to avoid this kind of situation.
1) User can create a legacy template with the following definition:
2) An index
myindex
is created (e.gPUT myindex
).3) Checking the index settings of
myindex
(GET myindex/_settings
), we observe thatindex.routing.allocation.require
is set tonull
Steps to Reproduce
As described above. This also happens in version 8.2.0 as well.
Logs (if relevant)
No response