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.client.RegionInfoprivate static final HBaseTestingUtilprivate 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(HBaseTestingUtil HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.client.RegionInfo hri) static voidcheckRegionIsOpened(HBaseTestingUtil HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.client.RegionInfo hri) static voidcloseRegion(HBaseTestingUtil HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.client.RegionInfo hri) private voidClose the region without using ZKstatic voidflushRegion(HBaseTestingUtil 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(HBaseTestingUtil HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.client.RegionInfo 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(HBaseTestingUtil HTU) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
flushRegion
public static void flushRegion(HBaseTestingUtil 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(HBaseTestingUtil HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception - Throws:
Exception
-
checkRegionIsOpened
public static void checkRegionIsOpened(HBaseTestingUtil HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception - Throws:
Exception
-
closeRegion
public static void closeRegion(HBaseTestingUtil HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception - Throws:
Exception
-
checkRegionIsClosed
public static void checkRegionIsClosed(HBaseTestingUtil HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.client.RegionInfo 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
- Throws:
IOException
-