ignore engine closed exception as well

This commit is contained in:
kimchy 2011-03-05 10:46:00 +02:00
parent f0825414d3
commit cb912de255
1 changed files with 3 additions and 1 deletions

View File

@ -629,7 +629,9 @@ public class InternalIndexShard extends AbstractIndexShardComponent implements I
} catch (EngineClosedException e) {
// we are being closed, ignore
} catch (OptimizeFailedEngineException e) {
if (e.getCause() instanceof InterruptedException) {
if (e.getCause() instanceof EngineClosedException) {
// ignore, we are being shutdown
} else if (e.getCause() instanceof InterruptedException) {
// ignore, we are being shutdown
} else if (e.getCause() instanceof ClosedByInterruptException) {
// ignore, we are being shutdown