public class TestDurability extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hdfs.MiniDFSCluster |
CLUSTER |
private static byte[] |
COL |
private static org.apache.hadoop.conf.Configuration |
CONF |
private static org.apache.hadoop.fs.Path |
DIR |
private static byte[] |
FAMILY |
private static org.apache.hadoop.fs.FileSystem |
FS |
org.junit.rules.TestName |
name |
private static byte[] |
ROW |
private static HBaseTestingUtility |
TEST_UTIL |
String |
walProvider |
Constructor and Description |
---|
TestDurability() |
Modifier and Type | Method and Description |
---|---|
private org.apache.hadoop.hbase.regionserver.HRegion |
createHRegion(org.apache.hadoop.hbase.client.TableDescriptor td,
org.apache.hadoop.hbase.client.RegionInfo info,
String dir,
org.apache.hadoop.hbase.wal.WAL wal,
org.apache.hadoop.hbase.client.Durability durability) |
private org.apache.hadoop.hbase.regionserver.HRegion |
createHRegion(org.apache.hadoop.hbase.wal.WALFactory wals,
org.apache.hadoop.hbase.client.Durability durability) |
static Iterable<Object[]> |
data() |
private org.apache.hadoop.hbase.client.Put |
newPut(org.apache.hadoop.hbase.client.Durability durability) |
void |
setUp() |
static void |
setUpBeforeClass() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testDurability() |
void |
testIncrement() |
void |
testIncrementWithReturnResultsSetToFalse()
Test when returnResults set to false in increment it should not return the result instead it
resturn null.
|
private void |
verifyWALCount(org.apache.hadoop.hbase.wal.WALFactory wals,
org.apache.hadoop.hbase.wal.WAL log,
int expected) |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.fs.FileSystem FS
private static org.apache.hadoop.hdfs.MiniDFSCluster CLUSTER
private static org.apache.hadoop.conf.Configuration CONF
private static org.apache.hadoop.fs.Path DIR
private static byte[] FAMILY
private static byte[] ROW
private static byte[] COL
public String walProvider
public org.junit.rules.TestName name
public TestDurability()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void setUp()
public void tearDown() throws IOException
IOException
public void testDurability() throws Exception
Exception
public void testIncrement() throws Exception
Exception
public void testIncrementWithReturnResultsSetToFalse() throws Exception
Exception
private org.apache.hadoop.hbase.client.Put newPut(org.apache.hadoop.hbase.client.Durability durability)
private void verifyWALCount(org.apache.hadoop.hbase.wal.WALFactory wals, org.apache.hadoop.hbase.wal.WAL log, int expected) throws Exception
Exception
private org.apache.hadoop.hbase.regionserver.HRegion createHRegion(org.apache.hadoop.hbase.wal.WALFactory wals, org.apache.hadoop.hbase.client.Durability durability) throws IOException
IOException
private org.apache.hadoop.hbase.regionserver.HRegion createHRegion(org.apache.hadoop.hbase.client.TableDescriptor td, org.apache.hadoop.hbase.client.RegionInfo info, String dir, org.apache.hadoop.hbase.wal.WAL wal, org.apache.hadoop.hbase.client.Durability durability) throws IOException
IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.