HBASE-8860 TestTableLockManager#testTableReadLock times out sometimes
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1499588 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4ff281e50d
commit
dae8894691
|
@ -314,7 +314,7 @@ public class TestTableLockManager {
|
|||
public void testTableReadLock() throws Exception {
|
||||
// test plan: write some data to the table. Continuously alter the table and
|
||||
// force splits
|
||||
// concurrently until we have 6 regions. verify the data just in case.
|
||||
// concurrently until we have 5 regions. verify the data just in case.
|
||||
// Every region should contain the same table descriptor
|
||||
// This is not an exact test
|
||||
prepareMiniCluster();
|
||||
|
@ -394,7 +394,7 @@ public class TestTableLockManager {
|
|||
for (HRegion region : TEST_UTIL.getMiniHBaseCluster().getRegions(tableName)) {
|
||||
assertEquals(desc, region.getTableDesc());
|
||||
}
|
||||
if (regions.size() >= 6) {
|
||||
if (regions.size() >= 5) {
|
||||
break;
|
||||
}
|
||||
Threads.sleep(1000);
|
||||
|
|
Loading…
Reference in New Issue