CircuitBreakingException

Hi All,

Iam getting below exceptions, let me know what need to do here?

Caused by: org.elasticsearch.ElasticsearchException: org.elasticsearch.common.breaker.CircuitBreakingException: Data too large, data for field [lastName.sortable] would be larger than limit of [425027174/405.3mb]
at org.elasticsearch.index.fielddata.AbstractIndexFieldData.load(AbstractIndexFieldData.java:79)
at org.elasticsearch.index.fielddata.plain.AbstractBytesIndexFieldData.load(AbstractBytesIndexFieldData.java:41)
at org.elasticsearch.index.fielddata.fieldcomparator.BytesRefOrdValComparator.setNextReader(BytesRefOrdValComparator.java:294)
at org.elasticsearch.index.fielddata.fieldcomparator.BytesRefOrdValComparator$PerSegmentComparator.setNextReader(BytesRefOrdValComparator.java:155)
at org.apache.lucene.search.TopFieldCollector$OneComparatorNonScoringCollector.setNextReader(TopFieldCollector.java:97)
at org.elasticsearch.common.lucene.search.FilteredCollector.setNextReader(FilteredCollector.java:67)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:612)
at org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:175)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:581)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:533)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:510)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:345)
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:149)
... 7 more

But http://XX.XX.XX.XX:YYYY/_nodes/stats/indices/fielddata?fields=lastName.sortable&human&pretty
Shows the the field size is less than 50Mb in all nodes.

FYI
ES_HEAP_SIZE= 2048m
indices.memory.index_buffer_size: 20%
indices.fielddata.cache.size: 30%
indices.fielddata.breaker.limit: 20%
indices.cache.filter.size: 5%

Increase your heap size, decrease the amount of data you are querying, add more nodes, use doc values.
Basically any of the 3 and definitely the last one.

1 Like