dlg99 commented on a change in pull request #2794:
URL: https://github.com/apache/bookkeeper/pull/2794#discussion_r715150149
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerOpenOp.java
##########
@@ -196,8 +196,28 @@ public void safeOperationComplete(int rc, Void result) {
if (rc == BKException.Code.OK) {
openComplete(BKException.Code.OK, lh);
} else if (rc ==
BKException.Code.UnauthorizedAccessException) {
+ try {
Review comment:
i'd refactor this into something like `closeLedger(LedgerHandle lh)`
--
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]