Skip to content

Commit

Permalink
fix dead lock in handleBookieFailure
Browse files Browse the repository at this point in the history
  • Loading branch information
fanjianye committed Jul 22, 2024
1 parent 4ca020a commit 3639c50
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@ public void operationComplete(final int rc,
PerChannelBookieClient pcbc) {
try {
if (rc != BKException.Code.OK) {
bookieClient.completeAdd(rc, ledgerId, entryId, addr, cb, ctx);
bookieClient.executor.executeOrdered(ledgerId, () ->
bookieClient.completeAdd(rc, ledgerId, entryId, addr, cb, ctx));
} else {
pcbc.addEntry(ledgerId, masterKey, entryId,
toSend, cb, ctx, options, allowFastFail, writeFlags);
Expand Down

0 comments on commit 3639c50

Please sign in to comment.