java.lang.Object
org.elasticsearch.cluster.routing.allocation.FailedShard

public class FailedShard extends Object
A class representing a failed shard.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getRoutingEntry

      public ShardRouting getRoutingEntry()
      The shard routing entry for the failed shard.
    • getMessage

      @Nullable public String getMessage()
      The failure message, if available, explaining why the shard failed.
    • getFailure

      @Nullable public Exception 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.