AnonHxy commented on code in PR #19435:
URL: https://github.com/apache/pulsar/pull/19435#discussion_r1096909103


##########
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/MetaStoreImpl.java:
##########
@@ -455,7 +456,7 @@ public ManagedLedgerInfo parseManagedLedgerInfo(byte[] 
data) throws InvalidProto
                         + "fall back to parse managedLedgerInfo directly.", e);
                 return ManagedLedgerInfo.parseFrom(data);
             } finally {
-                byteBuf.release();
+                ReferenceCountUtil.safeRelease(byteBuf);

Review Comment:
   This PIP has not passed yet. The disscuss thread: 
https://lists.apache.org/thread/c024dyn3gtfymdssqrqmg3s9gtn4ths9



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to