sijie commented on a change in pull request #813: Handle unexpected throwable
in Bookie V2 request processors
URL: https://github.com/apache/bookkeeper/pull/813#discussion_r154869829
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/ReadEntryProcessor.java
##########
@@ -129,6 +129,10 @@ protected void processPacket() {
} catch (BookieException e) {
LOG.error("Unauthorized access to ledger " + read.getLedgerId(),
e);
errorCode = BookieProtocol.EUA;
+ } catch (Throwable t) {
+ LOG.error("Unexpected exception reading at {}:{} : {}",
+ new Object[] { read.getLedgerId(), read.getEntryId(),
t.getMessage(), t });
Review comment:
I think in current version of slf4j, you don't need to use `new Object[] {}`
any more.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services