Class AllocateStalePrimaryAllocationCommand

All Implemented Interfaces:
AllocationCommand, NamedWriteable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject

public class AllocateStalePrimaryAllocationCommand extends BasePrimaryAllocationCommand
Allocates an unassigned stale primary shard to a specific node. Use with extreme care as this will result in data loss. Allocation deciders are ignored.
  • Field Details

    • NAME

      public static final String NAME
      See Also:
      Constant Field Values
    • COMMAND_NAME_FIELD

      public static final org.elasticsearch.common.xcontent.ParseField COMMAND_NAME_FIELD
  • Constructor Details

    • AllocateStalePrimaryAllocationCommand

      public AllocateStalePrimaryAllocationCommand(String index, int shardId, String node, boolean acceptDataLoss)
      Parameters:
      index - index of the shard to assign
      shardId - id of the shard to assign
      node - node id of the node to assign the shard to
      acceptDataLoss - whether the user agrees to data loss
    • AllocateStalePrimaryAllocationCommand

      public AllocateStalePrimaryAllocationCommand(StreamInput in) throws IOException
      Read from a stream.
      Throws:
      IOException
  • Method Details