File tree 1 file changed +4
-0
lines changed
src/main/java/org/elasticsearch/discovery/zen/ping/unicast
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 35
35
import org .elasticsearch .common .unit .TimeValue ;
36
36
import org .elasticsearch .common .util .concurrent .ConcurrentCollections ;
37
37
import org .elasticsearch .common .util .concurrent .EsExecutors ;
38
+ import org .elasticsearch .common .util .concurrent .EsRejectedExecutionException ;
38
39
import org .elasticsearch .discovery .zen .elect .ElectMasterService ;
39
40
import org .elasticsearch .discovery .zen .ping .PingContextProvider ;
40
41
import org .elasticsearch .discovery .zen .ping .ZenPing ;
@@ -254,6 +255,9 @@ public void run() {
254
255
}
255
256
}
256
257
});
258
+ } catch (EsRejectedExecutionException ex ) { // TODO: remove this once ScheduledExecutor has support for AbstractRunnable
259
+ sendPingsHandler .close ();
260
+ // we are shutting down
257
261
} catch (Exception e ) {
258
262
sendPingsHandler .close ();
259
263
throw new ElasticsearchException ("Ping execution failed" , e );
You can’t perform that action at this time.
0 commit comments