@@ -1616,32 +1616,34 @@ public GetTableResult get_table_req(GetTableRequest req) throws MetaException, N
1616
1616
@ Loggable (value = Loggable .DEBUG , skipResult = true , name = INVOCATION_LOG_NAME )
1617
1617
public GetTablesResult get_table_objects_by_name_req (GetTablesRequest req )
1618
1618
throws MetaException , InvalidOperationException , UnknownDBException , TException {
1619
+ long total = System .currentTimeMillis ();
1619
1620
StringBuilder message = new StringBuilder ();
1620
1621
Stopwatch stopWatch = Stopwatch .createStarted ();
1621
1622
1622
- message .append ("get_table_objects_by_name_req: req=" + req .toString () + "\n " );
1623
+ message .append ("get_table_objects_by_name_req: req=" + req .toString () + ", " );
1623
1624
DatabaseMapping mapping = databaseMappingService .databaseMapping (req .getDbName ());
1624
- message .append (" databaseMapping took:" + stopWatch .elapsed ().toMillis () + "\n " );
1625
+ message .append ("DatabaseMapping took:" + stopWatch .elapsed ().toMillis () + ", " );
1625
1626
stopWatch .reset ().start ();
1626
1627
1627
1628
List <String > filteredTables = databaseMappingService .filterTables (req .getDbName (), req .getTblNames (), mapping );
1628
1629
req .setTblNames (filteredTables );
1629
- message .append (" filtered tables 1st call took: " + stopWatch .elapsed ().toMillis () + "\n " );
1630
+ message .append ("Filtered tables 1st call took: " + stopWatch .elapsed ().toMillis () + ", " );
1630
1631
stopWatch .reset ().start ();
1631
1632
1632
1633
GetTablesResult result = mapping
1633
1634
.getClient ()
1634
1635
.get_table_objects_by_name_req (mapping .transformInboundGetTablesRequest (req ));
1635
- message .append (" HMS call took: " + stopWatch .elapsed ().toMillis () + "\n " );
1636
+ message .append ("HMS call took: " + stopWatch .elapsed ().toMillis () + ", " );
1636
1637
stopWatch .reset ().start ();
1637
1638
1638
1639
result .setTables (mapping .getMetastoreFilter ().filterTables (result .getTables ()));
1639
- message .append (" filtered tables 2nd call took: " + stopWatch .elapsed ().toMillis () + "\n " );
1640
+ message .append ("Filtered tables 2nd call took: " + stopWatch .elapsed ().toMillis () + ", " );
1640
1641
stopWatch .reset ().start ();
1641
1642
1642
1643
GetTablesResult getTablesResult = mapping .transformOutboundGetTablesResult (result );
1643
- message .append (" transform outbound took: " + stopWatch .elapsed ().toMillis () + " \n " );
1644
+ message .append ("Transform outbound took: " + stopWatch .elapsed ().toMillis ()+ ", " );
1644
1645
stopWatch .stop ();
1646
+ message .append ("Total get_table_objects_by_name_req took: " + (System .currentTimeMillis () - total ));
1645
1647
LOG .error (message .toString ());
1646
1648
return getTablesResult ;
1647
1649
}
0 commit comments