don't log a versioning conflict failure, even in DEBUG level

This commit is contained in:
kimchy 2011-04-19 12:17:11 +03:00
parent b94fab34eb
commit d29754121c
1 changed files with 4 additions and 2 deletions

View File

@ -423,8 +423,10 @@ public abstract class TransportShardReplicationOperationAction<Request extends S
retry(fromDiscoveryListener, shard.shardId());
return;
}
if (logger.isDebugEnabled()) {
logger.debug(shard.shortSummary() + ": Failed to execute [" + request + "]", e);
if (!(e instanceof VersionConflictEngineException)) {
if (logger.isDebugEnabled()) {
logger.debug(shard.shortSummary() + ": Failed to execute [" + request + "]", e);
}
}
listener.onFailure(e);
}