Updating index metadata does an expensive validation of the mapping even if unchanged #89309
Labels
>bug
priority:high
A label for assessing bug priority to be used by ES engineers
:Search Foundations/Mapping
Index mappings, including merging and defining field types
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
Updating index settings on a large number of indices can take many minutes and the resulting cluster state update might fail to cleanly publish without warning. A significant part of this slowness is that the index metadata validation that is run for each index. This validation deserialises + reserializes the mapping for every index that got updated, which for large mappings combined with a large number of updates indices can take many minutes.
We should find a way to skip unnecessary mapping validation when nothing about the mappings has changed, and to make use of mapping deduplication here too.
Relates #77466
Extracted from #87120
The text was updated successfully, but these errors were encountered: