-
Notifications
You must be signed in to change notification settings - Fork 25.4k
Open
Labels
:Search Foundations/MappingIndex mappings, including merging and defining field typesIndex mappings, including merging and defining field types>bugTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearchpriority:criticalA label for assessing bug priority to be used by ES engineersA label for assessing bug priority to be used by ES engineers
Description
In examining an OOM heap dump from a 7.12 user it was apparent that the culprit was a rogue document that introduced 360k(!) new fields and had a bunch of TextFieldMapper objects held in o.e.index.mapper.ParseContext.InternalParseContext.dynamicMappers
that together consumed 1.5GB of RAM of 2GB heap.
I know we have circuit breakers for numbers of fields in mappers but perhaps these objects are allocated during parsing before we test that condition?
Either way seems like we need some added robustness here.
mayya-sharipova and manush-serrala
Metadata
Metadata
Assignees
Labels
:Search Foundations/MappingIndex mappings, including merging and defining field typesIndex mappings, including merging and defining field types>bugTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearchpriority:criticalA label for assessing bug priority to be used by ES engineersA label for assessing bug priority to be used by ES engineers