HBASE-9187 HBaseAdmin#testTableExists can go zombie

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1512564 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-08-10 05:12:04 +00:00
parent 49b79cd4ca
commit e452cfe08a
1 changed files with 3 additions and 3 deletions

View File

@ -627,7 +627,7 @@ public class TestAdmin {
HTableDescriptor desc = new HTableDescriptor(TableName.valueOf(tableName));
desc.addFamily(new HColumnDescriptor(HConstants.CATALOG_FAMILY));
admin.createTable(desc, splitKeys);
boolean tableAvailable = admin.isTableAvailable(Bytes.toString(tableName), splitKeys);
assertTrue("Table should be created with splitKyes + 1 rows in META", tableAvailable);
@ -826,7 +826,7 @@ public class TestAdmin {
}
}
@Test (timeout=300000)
@Test (timeout=120000)
public void testTableExist() throws IOException {
final byte [] table = Bytes.toBytes("testTableExist");
boolean exist;
@ -1729,4 +1729,4 @@ public class TestAdmin {
ct.stop();
}
}
}
}