RejectedExecutionException != EdRejectedExecutionException

This commit is contained in:
Boaz Leskes 2016-06-21 21:08:43 +02:00
parent 5f0292cb81
commit e9230dd889
1 changed files with 2 additions and 2 deletions

View File

@ -32,6 +32,7 @@ import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.unit.TimeValue; import org.elasticsearch.common.unit.TimeValue;
import org.elasticsearch.common.util.concurrent.EsRejectedExecutionException;
import org.elasticsearch.threadpool.ThreadPool; import org.elasticsearch.threadpool.ThreadPool;
import org.elasticsearch.transport.BaseTransportResponseHandler; import org.elasticsearch.transport.BaseTransportResponseHandler;
import org.elasticsearch.transport.ConnectTransportException; import org.elasticsearch.transport.ConnectTransportException;
@ -45,7 +46,6 @@ import org.elasticsearch.transport.TransportService;
import java.io.IOException; import java.io.IOException;
import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicBoolean;
/** /**
@ -203,7 +203,7 @@ public class MasterFaultDetection extends FaultDetection {
listener.onMasterFailure(masterNode, cause, reason); listener.onMasterFailure(masterNode, cause, reason);
} }
}); });
} catch (RejectedExecutionException e) { } catch (EsRejectedExecutionException e) {
logger.error("master failure notification was rejected, it's highly likely the node is shutting down", e); logger.error("master failure notification was rejected, it's highly likely the node is shutting down", e);
} }
stop("master failure, " + reason); stop("master failure, " + reason);