File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
server/src/main/java/org/elasticsearch/action/support/master Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 4646import org .elasticsearch .tasks .Task ;
4747import org .elasticsearch .threadpool .ThreadPool ;
4848import org .elasticsearch .transport .ConnectTransportException ;
49+ import org .elasticsearch .transport .RemoteTransportException ;
4950import org .elasticsearch .transport .TransportException ;
5051import org .elasticsearch .transport .TransportService ;
5152
@@ -178,7 +179,8 @@ protected void doStart(ClusterState clusterState) {
178179 @ Override
179180 public void handleException (final TransportException exp ) {
180181 Throwable cause = exp .unwrapCause ();
181- if (cause instanceof ConnectTransportException || cause instanceof NodeClosedException ) {
182+ if (cause instanceof ConnectTransportException ||
183+ (exp instanceof RemoteTransportException && cause instanceof NodeClosedException )) {
182184 // we want to retry here a bit to see if a new master is elected
183185 logger .debug ("connection exception while trying to forward request with action name [{}] to " +
184186 "master node [{}], scheduling a retry. Error: [{}]" ,
You can’t perform that action at this time.
0 commit comments