Class HbckTestingUtil

java.lang.Object
org.apache.hadoop.hbase.util.hbck.HbckTestingUtil

public class HbckTestingUtil extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static ExecutorService
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    assertErrors(org.apache.hadoop.hbase.util.HBaseFsck fsck, org.apache.hadoop.hbase.util.HbckErrorReporter.ERROR_CODE[] expectedErrors)
     
    static void
    assertNoErrors(org.apache.hadoop.hbase.util.HBaseFsck fsck)
     
    static boolean
    cleanReplicationBarrier(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName table)
     
    static org.apache.hadoop.hbase.util.HBaseFsck
    doFsck(org.apache.hadoop.conf.Configuration conf, boolean fix)
     
    static org.apache.hadoop.hbase.util.HBaseFsck
    doFsck(org.apache.hadoop.conf.Configuration conf, boolean fixAssignments, boolean fixMeta, boolean fixHdfsHoles, boolean fixHdfsOverlaps, boolean fixHdfsOrphans, boolean fixTableOrphans, boolean fixVersionFile, boolean fixReferenceFiles, boolean fixHFileLinks, boolean fixEmptyMetaRegionInfo, boolean fixTableLocks, boolean fixReplication, boolean cleanReplicationBarrier, org.apache.hadoop.hbase.TableName table)
     
    static org.apache.hadoop.hbase.util.HBaseFsck
    doFsck(org.apache.hadoop.conf.Configuration conf, boolean fix, org.apache.hadoop.hbase.TableName table)
     
    static org.apache.hadoop.hbase.util.HBaseFsck
    doHFileQuarantine(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName table)
    Runs hbck with the -sidelineCorruptHFiles option
    static boolean
    inconsistencyFound(org.apache.hadoop.hbase.util.HBaseFsck fsck)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • doFsck

      public static org.apache.hadoop.hbase.util.HBaseFsck doFsck(org.apache.hadoop.conf.Configuration conf, boolean fix) throws Exception
      Throws:
      Exception
    • doFsck

      public static org.apache.hadoop.hbase.util.HBaseFsck doFsck(org.apache.hadoop.conf.Configuration conf, boolean fix, org.apache.hadoop.hbase.TableName table) throws Exception
      Throws:
      Exception
    • doFsck

      public static org.apache.hadoop.hbase.util.HBaseFsck doFsck(org.apache.hadoop.conf.Configuration conf, boolean fixAssignments, boolean fixMeta, boolean fixHdfsHoles, boolean fixHdfsOverlaps, boolean fixHdfsOrphans, boolean fixTableOrphans, boolean fixVersionFile, boolean fixReferenceFiles, boolean fixHFileLinks, boolean fixEmptyMetaRegionInfo, boolean fixTableLocks, boolean fixReplication, boolean cleanReplicationBarrier, org.apache.hadoop.hbase.TableName table) throws Exception
      Throws:
      Exception
    • doHFileQuarantine

      public static org.apache.hadoop.hbase.util.HBaseFsck doHFileQuarantine(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName table) throws Exception
      Runs hbck with the -sidelineCorruptHFiles option
      Parameters:
      table - table constraint
      Throws:
      Exception
    • cleanReplicationBarrier

      public static boolean cleanReplicationBarrier(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName table) throws IOException, ClassNotFoundException
      Throws:
      IOException
      ClassNotFoundException
    • inconsistencyFound

      public static boolean inconsistencyFound(org.apache.hadoop.hbase.util.HBaseFsck fsck) throws Exception
      Throws:
      Exception
    • assertNoErrors

      public static void assertNoErrors(org.apache.hadoop.hbase.util.HBaseFsck fsck) throws Exception
      Throws:
      Exception
    • assertErrors

      public static void assertErrors(org.apache.hadoop.hbase.util.HBaseFsck fsck, org.apache.hadoop.hbase.util.HbckErrorReporter.ERROR_CODE[] expectedErrors)