HBASE-1835 Add more delete tests
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@814398 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
08b616e926
commit
4479b081ab
|
@ -45,6 +45,7 @@ Release 0.21.0 - Unreleased
|
||||||
each daemon type
|
each daemon type
|
||||||
HBASE-1823 Ability for Scanners to bypass the block cache
|
HBASE-1823 Ability for Scanners to bypass the block cache
|
||||||
HBASE-1827 Add disabling block cache scanner flag to the shell
|
HBASE-1827 Add disabling block cache scanner flag to the shell
|
||||||
|
HBASE-1835 Add more delete tests
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
|
|
|
@ -314,6 +314,27 @@ public class TestHRegion extends HBaseTestCase {
|
||||||
get = new Get(row).addColumn(fam, splitB);
|
get = new Get(row).addColumn(fam, splitB);
|
||||||
result = region.get(get, null);
|
result = region.get(get, null);
|
||||||
assertEquals(1, result.size());
|
assertEquals(1, result.size());
|
||||||
|
|
||||||
|
// Assert that after a delete, I can put.
|
||||||
|
put = new Put(row);
|
||||||
|
put.add(fam, splitA, Bytes.toBytes("reference_A"));
|
||||||
|
region.put(put);
|
||||||
|
get = new Get(row);
|
||||||
|
result = region.get(get, null);
|
||||||
|
assertEquals(3, result.size());
|
||||||
|
|
||||||
|
// Now delete all... then test I can add stuff back
|
||||||
|
delete = new Delete(row);
|
||||||
|
region.delete(delete, null, false);
|
||||||
|
assertEquals(0, region.get(get, null).size());
|
||||||
|
try {
|
||||||
|
Thread.sleep(10);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
region.put(new Put(row).add(fam, splitA, Bytes.toBytes("reference_A")));
|
||||||
|
result = region.get(get, null);
|
||||||
|
assertEquals(1, result.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testDeleteRowWithFutureTs() throws IOException {
|
public void testDeleteRowWithFutureTs() throws IOException {
|
||||||
|
|
Loading…
Reference in New Issue