You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2021/09/24 03:16:48 UTC

[GitHub] [bookkeeper] gaozhangmin commented on a change in pull request #2805: replication stat num-under-replicated-ledgers changed as with the pro…

gaozhangmin commented on a change in pull request #2805:
URL: https://github.com/apache/bookkeeper/pull/2805#discussion_r715289450



##########
File path: bookkeeper-server/src/main/java/org/apache/bookkeeper/replication/Auditor.java
##########
@@ -998,6 +1006,13 @@ public void run() {
         }), initialDelay, interval, TimeUnit.SECONDS);
     }
 
+    private class UnderReplicatedLedgersChangedCb implements GenericCallback<Void> {
+        @Override
+        public void operationComplete(int rc, Void result) {
+            numUnderReplicatedLedger.registerSuccessfulValue(-1);

Review comment:
       Zookeeper Watcher added, the metric will be updated  When under replicated ledger path  deleted.
   I 




-- 
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: issues-unsubscribe@bookkeeper.apache.org

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