Class HbckTestingUtil
java.lang.Object
org.apache.hadoop.hbase.util.hbck.HbckTestingUtil
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 optionstatic boolean
inconsistencyFound
(org.apache.hadoop.hbase.util.HBaseFsck fsck)
-
Field Details
-
exec
-
-
Constructor Details
-
HbckTestingUtil
public HbckTestingUtil()
-
-
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
- Throws:
Exception
-
assertErrors
public static void assertErrors(org.apache.hadoop.hbase.util.HBaseFsck fsck, org.apache.hadoop.hbase.util.HbckErrorReporter.ERROR_CODE[] expectedErrors)
-