EmmyMiao87 commented on a change in pull request #1029:  Modify transaction 
proc info
URL: https://github.com/apache/incubator-doris/pull/1029#discussion_r278403834
 
 

 ##########
 File path: 
fe/src/main/java/org/apache/doris/transaction/GlobalTransactionMgr.java
 ##########
 @@ -1164,16 +1164,32 @@ private void updateDBRunningTxnNum(TransactionStatus 
preStatus, TransactionState
         return infos;
     }
     
-    public List<List<Comparable>> getDbTransInfo(long dbId, int limit) throws 
AnalysisException {
+    public List<List<String>> getDbTransStateInfo(long dbId) {
+        List<List<String>> infos = Lists.newArrayList();
+        readLock();
+        try {
+            infos.add(Lists.newArrayList("running", 
String.valueOf(runningTxnNums.getOrDefault(dbId, 0))));
+            long runningNum = idToTransactionState.values().stream().filter(
 
 Review comment:
   ```suggestion
               long finishedNum = idToTransactionState.values().stream().filter(
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to