You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by eo...@apache.org on 2024/04/21 04:56:33 UTC

(pulsar) branch branch-3.1 updated: [fix][broker] Fix OpReadEntry.skipCondition NPE issue (#22367)

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

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


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new 53662d34d9f [fix][broker] Fix OpReadEntry.skipCondition NPE issue (#22367)
53662d34d9f is described below

commit 53662d34d9f86aae8bdbff5e51dbfd5de2772598
Author: Jiwei Guo <te...@apache.org>
AuthorDate: Wed Mar 27 20:12:08 2024 +0800

    [fix][broker] Fix OpReadEntry.skipCondition NPE issue (#22367)
    
    (cherry picked from commit 404c0572a461908ffe09c483092d8df78356eae9)
---
 .../src/main/java/org/apache/bookkeeper/mledger/impl/OpReadEntry.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpReadEntry.java b/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpReadEntry.java
index 7b59c3903d5..a79ba3fb5e2 100644
--- a/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpReadEntry.java
+++ b/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpReadEntry.java
@@ -209,8 +209,8 @@ class OpReadEntry implements ReadEntriesCallback {
         entries = null;
         nextReadPosition = null;
         maxPosition = null;
-        recyclerHandle.recycle(this);
         skipCondition = null;
+        recyclerHandle.recycle(this);
     }
 
     private static final Logger log = LoggerFactory.getLogger(OpReadEntry.class);