Class RemoveCorruptedShardDataCommand

org.elasticsearch.cli.Command
All Implemented Interfaces:
,

public class RemoveCorruptedShardDataCommand extends ElasticsearchNodeCommand
  • Constructor Details

    • RemoveCorruptedShardDataCommand

      public RemoveCorruptedShardDataCommand()
  • Method Details

    • printAdditionalHelp

      protected void printAdditionalHelp(org.elasticsearch.cli.Terminal terminal)
      Overrides:
      printAdditionalHelp in class org.elasticsearch.cli.Command
    • getParser

      public joptsimple.OptionParser getParser()
    • getPath

      protected  getPath( dirValue)
    • findAndProcessShardPath

      protected void findAndProcessShardPath(joptsimple.OptionSet options, Environment environment, [] dataPaths, int nodeLockId, ClusterState clusterState, org.elasticsearch.core.CheckedConsumer<> consumer) throws
      Throws:
    • isCorruptMarkerFileIsPresent

      public static boolean isCorruptMarkerFileIsPresent(org.apache.lucene.store.Directory directory) throws
      Throws:
    • dropCorruptMarkerFiles

      protected void dropCorruptMarkerFiles(org.elasticsearch.cli.Terminal terminal,  path, org.apache.lucene.store.Directory directory, boolean clean) throws
      Throws:
    • processNodePaths

      public void processNodePaths(org.elasticsearch.cli.Terminal terminal, [] dataPaths, int nodeLockId, joptsimple.OptionSet options, Environment environment) throws
      Description copied from class: ElasticsearchNodeCommand
      Process the paths. Locks for the paths is held during this method invocation.
      Specified by:
      processNodePaths in class ElasticsearchNodeCommand
      Parameters:
      terminal - the terminal to use for messages
      dataPaths - the paths of the node to process
      options - the command line options
      environment - the env of the node to process
      Throws:
    • addNewHistoryCommit

      protected void addNewHistoryCommit(org.apache.lucene.store.Directory indexDirectory, org.elasticsearch.cli.Terminal terminal, boolean updateLocalCheckpoint) throws
      Throws: