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 2021/09/27 03:18:35 UTC

[GitHub] [pulsar] bookjiang commented on a change in pull request #12096: Improve statistical indicators

bookjiang commented on a change in pull request #12096:
URL: https://github.com/apache/pulsar/pull/12096#discussion_r716332657



##########
File path: managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java
##########
@@ -3964,5 +3966,19 @@ private void updateLastLedgerCreatedTimeAndScheduleRolloverTask() {
                     safeRun(this::rollCurrentLedgerIfFull), this.maximumRolloverTimeMs, TimeUnit.MILLISECONDS);
         }
     }
+    public CompletableFuture<LedgerEntry> getLastEntry() {
+        if (lastConfirmedEntry.getEntryId() == -1){
+            return new CompletableFuture<>();

Review comment:
       Thank you, teacher, it has been corrected.




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