@@ -745,6 +745,7 @@ public void partitionExecute(ObTableSingleOpResult[] results,
745745 }
746746
747747 long endExecute = System .currentTimeMillis ();
748+ logger .warn ("[latency monitor] finish partitionExecute using: {}" , endExecute - startExecute );
748749
749750 if (subLSOpResult == null ) {
750751 String logMessage = String .format (
@@ -832,13 +833,13 @@ private void executeWithRetries(ObTableSingleOpResult[] results,
832833 currentPartitions .put (entry .getKey (), entry .getValue ());
833834 int errCode = ResultCodes .OB_SUCCESS .errorCode ;
834835 String errMsg = null ;
835- long runTimeMaxWait = obTableClient .getRuntimeMaxWait ();
836+ long runTimeMaxWait = obTableClient .getRuntimeBatchMaxWait ();
836837 long startExecute = System .currentTimeMillis ();
837838 while (true ) {
838839 long costMillis = System .currentTimeMillis () - startExecute ;
839840 if (costMillis > runTimeMaxWait ) {
840841 errMsg = tableName + " failed to execute operation after retrying " + retryCount
841- + " times and it has waited" + costMillis + " ms"
842+ + " times and it has waited " + costMillis + " ms"
842843 + " which exceeds runtime max wait timeout " + runTimeMaxWait
843844 + " ms. Last error Msg:" + "[errCode=" + errCode + "] " + errMsg ;
844845 logger .error (errMsg );
@@ -851,6 +852,7 @@ private void executeWithRetries(ObTableSingleOpResult[] results,
851852 partitionExecute (results , currentEntry );
852853 } catch (Exception e ) {
853854 if (shouldRetry (e )) {
855+ long start = System .currentTimeMillis ();
854856 logger .warn ("ls batch meet should retry exception" , e );
855857 retryCount ++;
856858 errCode = ((ObTableNeedFetchMetaException ) e ).getErrorCode ();
@@ -859,6 +861,7 @@ private void executeWithRetries(ObTableSingleOpResult[] results,
859861 .getValue ());
860862 currentPartitions = prepareOperations (failedOperations );
861863 allPartitionsSuccess = false ;
864+ logger .warn ("[latency monitor] finish ls batch retry prepare using: {}" , System .currentTimeMillis () - start );
862865 break ;
863866 } else {
864867 throw e ;
0 commit comments