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.HRegionInfo
private static final HBaseTestingUtility
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
(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo hri) static void
checkRegionIsOpened
(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo hri) static void
closeRegion
(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo hri) private void
Close the region without using ZKstatic void
flushRegion
(HBaseTestingUtility 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
(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo 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(HBaseTestingUtility HTU) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
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
-