File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
server/src/main/java/org/elasticsearch/search/fetch Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1414import org .apache .lucene .index .LeafReaderContext ;
1515import org .apache .lucene .search .TotalHits ;
1616import org .elasticsearch .common .breaker .CircuitBreaker ;
17+ import org .elasticsearch .common .breaker .CircuitBreakingException ;
1718import org .elasticsearch .common .breaker .NoopCircuitBreaker ;
1819import org .elasticsearch .common .bytes .BytesReference ;
1920import org .elasticsearch .index .fieldvisitor .LeafStoredFieldLoader ;
@@ -314,6 +315,9 @@ private static HitContext prepareNonNestedHitContext(
314315 BytesReference sourceRef = source .internalSourceRef ();
315316 circuitBreaker .addEstimateBytesAndMaybeBreak (sourceRef .length (), "fetch phase source loader" );
316317 hit .unfilteredSourceRef (sourceRef );
318+ } catch (CircuitBreakingException e ) {
319+ hit .decRef ();
320+ throw e ;
317321 } finally {
318322 if (timer != null ) {
319323 timer .stop ();
You can’t perform that action at this time.
0 commit comments