Skip to content

Commit c103451

Browse files
committed
Purge hits on CBE
1 parent ff6ab24 commit c103451

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/src/main/java/org/elasticsearch/search/fetch/FetchPhaseDocsIterator.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ public final SearchHit[] iterate(
9999
return partialSearchHits;
100100
}
101101
}
102-
} catch (SearchTimeoutException | CircuitBreakingException e) {
102+
} catch (SearchTimeoutException e) {
103+
throw e;
104+
} catch (CircuitBreakingException e) {
105+
purgeSearchHits(searchHits);
103106
throw e;
104107
} catch (Exception e) {
105108
purgeSearchHits(searchHits);

0 commit comments

Comments
 (0)