graysonzeng commented on code in PR #4135:
URL: https://github.com/apache/bookkeeper/pull/4135#discussion_r1410262341


##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/directentrylogger/DirectEntryLogger.java:
##########
@@ -262,6 +263,7 @@ private ByteBuf internalReadEntry(long ledgerId, long 
entryId, long location, bo
             
stats.getReadEntryStats().registerSuccessfulEvent(System.nanoTime() - start, 
TimeUnit.NANOSECONDS);
             return buf;
         } catch (EOFException eof) {
+            ReferenceCountUtil.release(buf);

Review Comment:
   Yes, if it can return buf correctly, then buf can be released by the upper 
layer



-- 
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