Class TestRegionServerNoMaster
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionServerNoMaster
Tests on the region server, without the master.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static org.apache.hadoop.hbase.HRegionInfoprivate static final HBaseTestingUtilityprivate static final org.slf4j.Loggerprivate static final intprivate static byte[]private static final byte[]private static org.apache.hadoop.hbase.client.Table -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidbefore()static voidcheckRegionIsClosed(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo hri) static voidcheckRegionIsOpened(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo hri) static voidcloseRegion(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo hri) private voidClose the region without using ZKstatic voidflushRegion(HBaseTestingUtility HTU, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Flush the given region in the mini cluster.private static org.apache.hadoop.hbase.regionserver.HRegionServergetRS()static voidopenRegion(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo hri) static voidvoidTest that if we do a close while opening it stops the opening.voidvoidvoidvoidTests an on-the-fly RPC that was scheduled for the earlier RS on the same port for openRegion.
-
Field Details
-
CLASS_RULE
-
LOG
-
NB_SERVERS
- See Also:
-
table
-
row
-
hri
-
regionName
-
HTU
-
-
Constructor Details
-
TestRegionServerNoMaster
public TestRegionServerNoMaster()
-
-
Method Details
-
before
- Throws:
Exception
-
stopMasterAndCacheMetaLocation
public static void stopMasterAndCacheMetaLocation(HBaseTestingUtility HTU) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
flushRegion
public static void flushRegion(HBaseTestingUtility HTU, org.apache.hadoop.hbase.client.RegionInfo regionInfo) throws IOException Flush the given region in the mini cluster. Since no master, we cannot use HBaseAdmin.flush()- Throws:
IOException
-
afterClass
- Throws:
Exception
-
getRS
-
openRegion
public static void openRegion(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo hri) throws Exception - Throws:
Exception
-
checkRegionIsOpened
public static void checkRegionIsOpened(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo hri) throws Exception - Throws:
Exception
-
closeRegion
public static void closeRegion(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo hri) throws Exception - Throws:
Exception
-
checkRegionIsClosed
public static void checkRegionIsClosed(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo hri) throws Exception - Throws:
Exception
-
closeRegionNoZK
Close the region without using ZK- Throws:
Exception
-
testCloseByRegionServer
- Throws:
Exception
-
testMultipleCloseFromMaster
- Throws:
Exception
-
testCancelOpeningWithoutZK
Test that if we do a close while opening it stops the opening.- Throws:
Exception
-
testOpenCloseRegionRPCIntendedForPreviousServer
Tests an on-the-fly RPC that was scheduled for the earlier RS on the same port for openRegion. The region server should reject this RPC. (HBASE-9721)- Throws:
Exception
-
testInstallShutdownHook
-