Skip to content

Commit f18503c

Browse files
committed
ignore engine closed exception as well
1 parent 7ad47c5 commit f18503c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/elasticsearch/src/main/java/org/elasticsearch/index/shard/service/InternalIndexShard.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,9 @@ private class EngineMerger implements Runnable {
621621
} catch (EngineClosedException e) {
622622
// we are being closed, ignore
623623
} catch (OptimizeFailedEngineException e) {
624-
if (e.getCause() instanceof InterruptedException) {
624+
if (e.getCause() instanceof EngineClosedException) {
625+
// ignore, we are being shutdown
626+
} else if (e.getCause() instanceof InterruptedException) {
625627
// ignore, we are being shutdown
626628
} else if (e.getCause() instanceof ClosedByInterruptException) {
627629
// ignore, we are being shutdown

0 commit comments

Comments
 (0)