Remove double exceptin handling that causes false replica failures
we already fail the shard in the `onFailure` method if the replica operation barfs. This additional check has been added lately that bypasses the clusterstate observer which causes replicas to fail if the mappings are not yet present.
This commit is contained in:
parent
afdec4c84c
commit
d20202a963
|
@ -278,9 +278,6 @@ public abstract class TransportShardReplicationOperationAction<Request extends S
|
|||
protected void doRun() throws Exception {
|
||||
try (Releasable shardReference = getIndexShardOperationsCounter(request.internalShardId)) {
|
||||
shardOperationOnReplica(request.internalShardId, request);
|
||||
} catch (Throwable t) {
|
||||
failReplicaIfNeeded(request.internalShardId.index().name(), request.internalShardId.id(), t);
|
||||
throw t;
|
||||
}
|
||||
channel.sendResponse(TransportResponse.Empty.INSTANCE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue