This is an automated email from the ASF dual-hosted git repository.

penghui pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/pulsar.git

commit 5d00904c56f78c97460720e5b984a893231fd312
Author: Zhanpeng Wu <[email protected]>
AuthorDate: Sat Mar 27 07:30:06 2021 +0800

    bugfix for wrong timeunit in updating lastLedgerCreationInitiationTimestamp 
(#10049)
    
    Co-authored-by: wuzhanpeng <[email protected]>
    (cherry picked from commit 1b8da9245e111718acb337bce310ffdef7b30496)
---
 .../main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java
 
b/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java
index 754815c..66d4c71 100644
--- 
a/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java
+++ 
b/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java
@@ -1472,7 +1472,7 @@ public class ManagedLedgerImpl implements ManagedLedger, 
CreateCallback {
 
     synchronized void createLedgerAfterClosed() {
         STATE_UPDATER.set(this, State.CreatingLedger);
-        this.lastLedgerCreationInitiationTimestamp = System.nanoTime();
+        this.lastLedgerCreationInitiationTimestamp = 
System.currentTimeMillis();
         mbean.startDataLedgerCreateOp();
         asyncCreateLedger(bookKeeper, config, digestType, this, 
Collections.emptyMap());
     }

Reply via email to