File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/test/java/com/alipay/oceanbase/hbase Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -633,7 +633,7 @@ public void testAdminGetRegionMetrics() throws Exception {
633
633
long thrStart = System .currentTimeMillis ();
634
634
regionMetrics = admin .getRegionMetrics (null , TableName .valueOf (tablegroup2 ));
635
635
long thrCost = System .currentTimeMillis () - thrStart ;
636
- System .out .println ("task: " + taskId + ", get region metrics time usage: " + thrCost + "ms, tablegroup: " + tablegroup1 );
636
+ System .out .println ("task: " + taskId + ", get region metrics time usage: " + thrCost + "ms, tablegroup: " + tablegroup2 );
637
637
if (regionMetrics .size () != 3 ) {
638
638
throw new ObTableGetException (
639
639
"the number of region metrics does not match the number of tablets, the number of region metrics: " + regionMetrics .size ());
@@ -1624,12 +1624,7 @@ public void testHbaseDDLException() throws Exception {
1624
1624
}
1625
1625
1626
1626
// 11. check table exists from an uncreated namespace
1627
- try {
1628
- admin .tableExists (TableName .valueOf ("n101:t1" ));
1629
- fail ();
1630
- } catch (Exception e ) {
1631
- Assert .assertEquals (e .getClass (), NamespaceNotFoundException .class );
1632
- }
1627
+ Assert .assertFalse (admin .tableExists (TableName .valueOf ("n101:t1" )));
1633
1628
1634
1629
}
1635
1630
You can’t perform that action at this time.
0 commit comments