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:
jxiang 2013-07-03 22:47:43 +00:00
parent 4ff281e50d
commit dae8894691
1 changed files with 2 additions and 2 deletions

View File

@ -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);