zymap commented on code in PR #17228:
URL: https://github.com/apache/pulsar/pull/17228#discussion_r971577138


##########
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java:
##########
@@ -2957,7 +2998,12 @@ public void asyncOffloadPrefix(Position pos, 
OffloadCallback callback, Object ct
             promise.whenComplete((result, exception) -> {
                 offloadMutex.unlock();
                 if (exception != null) {
-                    callback.offloadFailed(new 
ManagedLedgerException(exception), ctx);
+                    Throwable t = 
FutureUtil.unwrapCompletionException(exception);

Review Comment:
   Great catch! We need to do the refresh here



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

Reply via email to