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:
Simon Willnauer 2015-05-05 17:59:37 +02:00
parent afdec4c84c
commit d20202a963
1 changed files with 0 additions and 3 deletions

View File

@ -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);
}