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 2018/03/21 23:20:37 UTC

[incubator-pulsar] branch master updated: Recycle OpAddEntry when ledger-ops fails (#1415)

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/incubator-pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new f5ffbbe  Recycle OpAddEntry when ledger-ops fails (#1415)
f5ffbbe is described below

commit f5ffbbe1ed2b79be1caf4a59688eab006e932ced
Author: Rajan Dhabalia <rd...@apache.org>
AuthorDate: Wed Mar 21 16:20:35 2018 -0700

    Recycle OpAddEntry when ledger-ops fails (#1415)
---
 .../src/main/java/org/apache/bookkeeper/mledger/impl/OpAddEntry.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpAddEntry.java b/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpAddEntry.java
index b1f1d56..701757b 100644
--- a/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpAddEntry.java
+++ b/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpAddEntry.java
@@ -99,6 +99,7 @@ class OpAddEntry extends SafeRunnable implements AddCallback, CloseCallback {
         if (cb != null) {
             cb.addFailed(e, ctx);
             ml.mbean.recordAddEntryError();
+            this.recycle();
         }
     }
 

-- 
To stop receiving notification emails like this one, please contact
mmerli@apache.org.