Class TestRegionServerNoMaster
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionServerNoMaster
Tests on the region server, without the master.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.hbase.client.RegionInfo
private static final HBaseTestingUtil
private static final org.slf4j.Logger
private static final int
private static byte[]
private static final byte[]
private static org.apache.hadoop.hbase.client.Table
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
before()
static void
checkRegionIsClosed
(HBaseTestingUtil HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.client.RegionInfo hri) static void
checkRegionIsOpened
(HBaseTestingUtil HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.client.RegionInfo hri) static void
closeRegion
(HBaseTestingUtil HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.client.RegionInfo hri) private void
Close the region without using ZKstatic void
flushRegion
(HBaseTestingUtil HTU, org.apache.hadoop.hbase.client.RegionInfo regionInfo) Flush the given region in the mini cluster.private static org.apache.hadoop.hbase.regionserver.HRegionServer
getRS()
static void
openRegion
(HBaseTestingUtil HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.client.RegionInfo hri) static void
void
Test that if we do a close while opening it stops the opening.void
void
void
void
Tests 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:
IOException
InterruptedException
-
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
-