Class TestFailedAppendAndSync
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestFailedAppendAndSync
Testing sync/append failures. Copied from TestHRegion.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final String
private static final byte[]
static org.apache.hadoop.conf.Configuration
private String
private static final org.slf4j.Logger
org.junit.rules.TestName
(package private) org.apache.hadoop.hbase.regionserver.HRegion
protected org.apache.hadoop.hbase.TableName
private static HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) String
getName()
static org.apache.hadoop.hbase.regionserver.HRegion
initHRegion
(org.apache.hadoop.hbase.TableName tableName, byte[] startKey, byte[] stopKey, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.wal.WAL wal) void
setup()
void
tearDown()
void
Reproduce locking up that happens when we get an exceptions appending and syncing.
-
Field Details
-
CLASS_RULE
-
LOG
-
name
-
COLUMN_FAMILY
- See Also:
-
COLUMN_FAMILY_BYTES
-
region
org.apache.hadoop.hbase.regionserver.HRegion region -
TEST_UTIL
-
CONF
-
dir
-
tableName
-
-
Constructor Details
-
TestFailedAppendAndSync
public TestFailedAppendAndSync()
-
-
Method Details
-
setup
- Throws:
IOException
-
tearDown
- Throws:
Exception
-
getName
-
testLockupAroundBadAssignSync
Reproduce locking up that happens when we get an exceptions appending and syncing. See HBASE-14317. First I need to set up some mocks for Server and RegionServerServices. I also need to set up a dodgy WAL that will throw an exception when we go to append to it.- Throws:
IOException
-
initHRegion
public static org.apache.hadoop.hbase.regionserver.HRegion initHRegion(org.apache.hadoop.hbase.TableName tableName, byte[] startKey, byte[] stopKey, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.wal.WAL wal) throws IOException - Returns:
- A region on which you must call
HBaseTestingUtil.closeRegionAndWAL(HRegion)
when done. - Throws:
IOException
-