From 8652cd8aa3eb03ac10c53be8be7ad75f2a3e1175 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Fri, 4 Mar 2016 11:19:54 +0100 Subject: [PATCH] Handle RejectedExecution gracefully in TransportService Today we might run into a rejected execution exception when we shutdown the node while handling a transport exception. The exception is run in a seperate thread but that thread might not be able to execute due to the shutdown. Today we barf and fill the logs with large exception. This commit catches this exception and logs it as debug logging instead. --- .../elasticsearch/transport/TransportService.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/transport/TransportService.java b/core/src/main/java/org/elasticsearch/transport/TransportService.java index cb2c05eedd7..7884ed04af1 100644 --- a/core/src/main/java/org/elasticsearch/transport/TransportService.java +++ b/core/src/main/java/org/elasticsearch/transport/TransportService.java @@ -332,9 +332,18 @@ public class TransportService extends AbstractLifecycleComponent