Skip to content

Commit

Permalink
[ISSUE #9119] Invoke async should throw raw exception instead of Comp…
Browse files Browse the repository at this point in the history
…letionException (#9120)
  • Loading branch information
gaoyf authored Jan 17, 2025
1 parent 4269dc5 commit de4e48d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
import org.apache.rocketmq.common.ServiceThread;
import org.apache.rocketmq.common.UtilAll;
import org.apache.rocketmq.common.constant.LoggerName;
import org.apache.rocketmq.common.utils.ExceptionUtils;
import org.apache.rocketmq.logging.org.slf4j.Logger;
import org.apache.rocketmq.logging.org.slf4j.LoggerFactory;
import org.apache.rocketmq.remoting.ChannelEventListener;
Expand Down Expand Up @@ -602,7 +603,7 @@ public void invokeAsyncImpl(final Channel channel, final RemotingCommand request
})
.thenAccept(responseFuture -> invokeCallback.operationSucceed(responseFuture.getResponseCommand()))
.exceptionally(t -> {
invokeCallback.operationFail(t);
invokeCallback.operationFail(ExceptionUtils.getRealException(t));
return null;
});
}
Expand Down

0 comments on commit de4e48d

Please sign in to comment.