public class HbckTestingUtil extends Object
Modifier and Type | Field and Description |
---|---|
private static ExecutorService |
exec |
Constructor and Description |
---|
HbckTestingUtil() |
Modifier and Type | Method and 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) |
private static ExecutorService exec
public HbckTestingUtil()
public static org.apache.hadoop.hbase.util.HBaseFsck doFsck(org.apache.hadoop.conf.Configuration conf, boolean fix) throws Exception
Exception
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
Exception
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
Exception
public static org.apache.hadoop.hbase.util.HBaseFsck doHFileQuarantine(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName table) throws Exception
table
- table constraint nException
public static boolean cleanReplicationBarrier(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName table) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public static boolean inconsistencyFound(org.apache.hadoop.hbase.util.HBaseFsck fsck) throws Exception
Exception
public static void assertNoErrors(org.apache.hadoop.hbase.util.HBaseFsck fsck) throws Exception
Exception
public static void assertErrors(org.apache.hadoop.hbase.util.HBaseFsck fsck, org.apache.hadoop.hbase.util.HbckErrorReporter.ERROR_CODE[] expectedErrors)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.