graysonzeng commented on code in PR #4135:
URL: https://github.com/apache/bookkeeper/pull/4135#discussion_r1413522118
##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/directentrylogger/DirectEntryLogger.java:
##########
@@ -244,14 +244,15 @@ private ByteBuf internalReadEntry(long ledgerId, long
entryId, long location, bo
long start = System.nanoTime();
LogReader reader = getReader(logId);
-
+ ByteBuf buf = null;
Review Comment:
No, I added a line of code after the catch EOFException before. line 266
refers to it
```java
} catch (EOFException eof) {
ReferenceCountUtil.release(buf); // line_266
stats.getReadEntryStats().registerFailedEvent(System.nanoTime()
- start, TimeUnit.NANOSECONDS);
--
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]