zymap commented on a change in pull request #2913:
URL: https://github.com/apache/bookkeeper/pull/2913#discussion_r758028105
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerHandle.java
##########
@@ -571,7 +571,11 @@ public void safeRun() {
// error out all pending adds during closing, the callbacks
shouldn't be
// running under any bk locks.
- errorOutPendingAdds(rc, pendingAdds);
+ try {
+ errorOutPendingAdds(rc, pendingAdds);
+ } catch (Exception e) {
+ closePromise.completeExceptionally(e);
Review comment:
If there has an exception, do we need to do the
`tearDownWriteHandleState()` and ` MetadataUpdateLoop` operations?
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerHandle.java
##########
@@ -571,7 +571,11 @@ public void safeRun() {
// error out all pending adds during closing, the callbacks
shouldn't be
// running under any bk locks.
- errorOutPendingAdds(rc, pendingAdds);
+ try {
+ errorOutPendingAdds(rc, pendingAdds);
+ } catch (Exception e) {
+ closePromise.completeExceptionally(e);
Review comment:
If there has an exception, do we still need to do the
`tearDownWriteHandleState()` and ` MetadataUpdateLoop` operations?
--
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]