You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/05/25 04:15:51 UTC

[GitHub] [pulsar] congbobo184 commented on a diff in pull request #15654: [admin][txn] Add transaction admin to get recover time in stats.

congbobo184 commented on code in PR #15654:
URL: https://github.com/apache/pulsar/pull/15654#discussion_r881200843


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/transaction/buffer/impl/TopicTransactionBuffer.java:
##########
@@ -98,6 +99,9 @@ public class TopicTransactionBuffer extends TopicTransactionBufferState implemen
 
     private final ConcurrentHashMap<Long, Long> lowWaterMarks = new ConcurrentHashMap<>();
 
+    //Store transaction buffer recovery start time and end time. The left is start time and the right is end time.
+    public final MutablePair<Long, Long> recoverTimePair = new MutablePair<>(0L, 0L);

Review Comment:
   can create a Class RecoverTimeRecord to record this 



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org