Class AssignmentTestingUtil
java.lang.Object
org.apache.hadoop.hbase.master.assignment.AssignmentTestingUtil
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
crashRs
(HBaseTestingUtility util, org.apache.hadoop.hbase.ServerName serverName, boolean kill) static org.apache.hadoop.hbase.ServerName
crashRsWithRegion
(HBaseTestingUtility util, org.apache.hadoop.hbase.client.RegionInfo hri, boolean kill) private static org.apache.hadoop.hbase.master.HMaster
getMaster
(HBaseTestingUtility util) static Set<org.apache.hadoop.hbase.client.RegionInfo>
static org.apache.hadoop.hbase.ServerName
getServerHoldingRegion
(HBaseTestingUtility util, org.apache.hadoop.hbase.client.RegionInfo hri) static void
insertData
(HBaseTestingUtility UTIL, org.apache.hadoop.hbase.TableName tableName, int rowCount, int startRowNum, boolean flushOnce, String... cfs) static void
insertData
(HBaseTestingUtility UTIL, org.apache.hadoop.hbase.TableName tableName, int rowCount, int startRowNum, String... cfs) static boolean
isServerHoldingMeta
(HBaseTestingUtility util, org.apache.hadoop.hbase.ServerName serverName) static void
killRs
(HBaseTestingUtility util, org.apache.hadoop.hbase.ServerName serverName) static void
stopRs
(HBaseTestingUtility util, org.apache.hadoop.hbase.ServerName serverName) static boolean
waitForAssignment
(org.apache.hadoop.hbase.master.assignment.AssignmentManager am, org.apache.hadoop.hbase.client.RegionInfo regionInfo) static void
waitForRegionToBeInTransition
(HBaseTestingUtility util, org.apache.hadoop.hbase.client.RegionInfo hri) static void
waitForRsToBeDead
(HBaseTestingUtility util, org.apache.hadoop.hbase.ServerName serverName)
-
Field Details
-
LOG
-
-
Constructor Details
-
AssignmentTestingUtil
private AssignmentTestingUtil()
-
-
Method Details
-
waitForRegionToBeInTransition
public static void waitForRegionToBeInTransition(HBaseTestingUtility util, org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception - Throws:
Exception
-
waitForRsToBeDead
public static void waitForRsToBeDead(HBaseTestingUtility util, org.apache.hadoop.hbase.ServerName serverName) throws Exception - Throws:
Exception
-
stopRs
public static void stopRs(HBaseTestingUtility util, org.apache.hadoop.hbase.ServerName serverName) throws Exception - Throws:
Exception
-
killRs
public static void killRs(HBaseTestingUtility util, org.apache.hadoop.hbase.ServerName serverName) throws Exception - Throws:
Exception
-
crashRs
public static void crashRs(HBaseTestingUtility util, org.apache.hadoop.hbase.ServerName serverName, boolean kill) throws Exception - Throws:
Exception
-
crashRsWithRegion
public static org.apache.hadoop.hbase.ServerName crashRsWithRegion(HBaseTestingUtility util, org.apache.hadoop.hbase.client.RegionInfo hri, boolean kill) throws Exception - Throws:
Exception
-
getServerHoldingRegion
public static org.apache.hadoop.hbase.ServerName getServerHoldingRegion(HBaseTestingUtility util, org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception - Throws:
Exception
-
isServerHoldingMeta
public static boolean isServerHoldingMeta(HBaseTestingUtility util, org.apache.hadoop.hbase.ServerName serverName) throws Exception - Throws:
Exception
-
getMetaRegions
public static Set<org.apache.hadoop.hbase.client.RegionInfo> getMetaRegions(HBaseTestingUtility util) -
getMaster
-
waitForAssignment
public static boolean waitForAssignment(org.apache.hadoop.hbase.master.assignment.AssignmentManager am, org.apache.hadoop.hbase.client.RegionInfo regionInfo) throws IOException - Throws:
IOException
-
insertData
public static void insertData(HBaseTestingUtility UTIL, org.apache.hadoop.hbase.TableName tableName, int rowCount, int startRowNum, String... cfs) throws IOException - Throws:
IOException
-
insertData
public static void insertData(HBaseTestingUtility UTIL, org.apache.hadoop.hbase.TableName tableName, int rowCount, int startRowNum, boolean flushOnce, String... cfs) throws IOException - Throws:
IOException
-