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_r154869648
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/WriteEntryProcessor.java
 ##########
 @@ -87,6 +87,10 @@ protected void processPacket() {
         } catch (BookieException e) {
             LOG.error("Unauthorized access to ledger " + add.getLedgerId(), e);
             rc = BookieProtocol.EUA;
+        } catch (Throwable t) {
+            LOG.error("Unexpected exception while writing {}@{} : {}", new 
Object[] { add.ledgerId, add.entryId, t.getMessage(), t });
 
 Review comment:
   I think this is a too-long line, it might fail checkstyle.

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

Reply via email to