HBASE-25748 [Addendum] use existed admin in testCreateTableRPCTimeOut (#3151)
This commit is contained in:
parent
2bb22b58c9
commit
c6ea62bbf3
|
@ -205,11 +205,9 @@ public class TestAdmin2 {
|
||||||
// Use 80 bit numbers to make sure we aren't limited
|
// Use 80 bit numbers to make sure we aren't limited
|
||||||
byte [] startKey = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };
|
byte [] startKey = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };
|
||||||
byte [] endKey = { 9, 9, 9, 9, 9, 9, 9, 9, 9, 9 };
|
byte [] endKey = { 9, 9, 9, 9, 9, 9, 9, 9, 9, 9 };
|
||||||
Admin hbaseadmin = new HBaseAdmin(TEST_UTIL.getConfiguration());
|
|
||||||
HTableDescriptor htd = new HTableDescriptor(TableName.valueOf(name));
|
HTableDescriptor htd = new HTableDescriptor(TableName.valueOf(name));
|
||||||
htd.addFamily(new HColumnDescriptor(HConstants.CATALOG_FAMILY));
|
htd.addFamily(new HColumnDescriptor(HConstants.CATALOG_FAMILY));
|
||||||
hbaseadmin.createTable(htd, startKey, endKey, expectedRegions);
|
admin.createTable(htd, startKey, endKey, expectedRegions);
|
||||||
hbaseadmin.close();
|
|
||||||
} finally {
|
} finally {
|
||||||
TEST_UTIL.getConfiguration().setInt(HConstants.HBASE_RPC_TIMEOUT_KEY, oldTimeout);
|
TEST_UTIL.getConfiguration().setInt(HConstants.HBASE_RPC_TIMEOUT_KEY, oldTimeout);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue