You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2021/03/26 23:30:51 UTC

[pulsar] branch master updated: bugfix for wrong timeunit in updating lastLedgerCreationInitiationTimestamp (#10049)

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

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 1b8da92  bugfix for wrong timeunit in updating lastLedgerCreationInitiationTimestamp (#10049)
1b8da92 is described below

commit 1b8da9245e111718acb337bce310ffdef7b30496
Author: Zhanpeng Wu <zh...@qq.com>
AuthorDate: Sat Mar 27 07:30:06 2021 +0800

    bugfix for wrong timeunit in updating lastLedgerCreationInitiationTimestamp (#10049)
    
    Co-authored-by: wuzhanpeng <wu...@bigo.sg>
---
 .../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 a441d0f..e4c4b4a 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
@@ -1575,7 +1575,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());
     }