HBASE-13258 addendum add log and reduce testCount in TestHRegion.testWritesWhileGetting

This commit is contained in:
zhangduo 2015-03-17 21:43:37 +08:00
parent 2b08653a79
commit 7b7b0bf9dd
1 changed files with 2 additions and 2 deletions

View File

@ -3837,7 +3837,7 @@ public class TestHRegion {
*/ */
@Test @Test
public void testWritesWhileGetting() throws Exception { public void testWritesWhileGetting() throws Exception {
int testCount = 100; int testCount = 50;
int numRows = 1; int numRows = 1;
int numFamilies = 10; int numFamilies = 10;
int numQualifiers = 100; int numQualifiers = 100;
@ -3896,7 +3896,7 @@ public class TestHRegion {
long prevTimestamp = 0L; long prevTimestamp = 0L;
for (int i = 0; i < testCount; i++) { for (int i = 0; i < testCount; i++) {
LOG.info("testWritesWhileGetting verify turn " + i);
boolean previousEmpty = result == null || result.isEmpty(); boolean previousEmpty = result == null || result.isEmpty();
result = region.get(get); result = region.get(get);
if (!result.isEmpty() || !previousEmpty || i > compactInterval) { if (!result.isEmpty() || !previousEmpty || i > compactInterval) {