protect against transport shutdowns

This commit is contained in:
Boaz Leskes 2016-02-12 10:22:54 +01:00
parent 74194b8f0f
commit 57501ce5ff
1 changed files with 2 additions and 1 deletions

View File

@ -995,7 +995,8 @@ public abstract class TransportReplicationAction<Request extends ReplicationRequ
indexShardReference.failShard(message, shardFailedError);
forceFinishAsFailed(new RetryOnPrimaryException(shardId, message, shardFailedError));
} else {
assert false : shardFailedError;
assert shardFailedError.getMessage().contains("TransportService is closed ") :
shardFailedError;
onReplicaFailure(nodeId, exp);
}
}