StevenLuMT commented on a change in pull request #2999:
URL: https://github.com/apache/bookkeeper/pull/2999#discussion_r787628133
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/BookieImpl.java
##########
@@ -1082,7 +1082,8 @@ public ByteBuf readEntry(long ledgerId, long entryId)
LOG.trace("Reading {}@{}", entryId, ledgerId);
}
ByteBuf entry = handle.readEntry(entryId);
- bookieStats.getReadBytes().add(entry.readableBytes());
+ entrySize = entry.readableBytes();
+ bookieStats.getReadBytes().add(entrySize);
Review comment:
> I didn't see the `finally` cause refer the entrySize variable. Can you
explain more detail? thanks
I add the code picture
--
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]