Class FailedShard
java.lang.Object
org.elasticsearch.cluster.routing.allocation.FailedShard
A class representing a failed shard.
-
Constructor Summary
ConstructorDescriptionFailedShard(ShardRouting routingEntry, String message, Exception failure, boolean markAsStale)
-
Method Summary
Modifier and TypeMethodDescriptionThe exception, if present, causing the shard to fail.The failure message, if available, explaining why the shard failed.The shard routing entry for the failed shard.boolean
Whether or not to mark the shard as stale (eg.toString()
-
Constructor Details
-
FailedShard
public FailedShard(ShardRouting routingEntry, String message, @Nullable Exception failure, boolean markAsStale)
-
-
Method Details
-
toString
-
getRoutingEntry
The shard routing entry for the failed shard. -
getMessage
The failure message, if available, explaining why the shard failed. -
getFailure
The exception, if present, causing the shard to fail. -
markAsStale
public boolean markAsStale()Whether or not to mark the shard as stale (eg. removing from in-sync set) when failing the shard.
-