Github user ConeyLiu commented on the issue:
https://github.com/apache/spark/pull/18670
Thanks for your reviewing. @vanzin @zsxwing I can understand what you mean.
But if we really need a `Throwable` message in client, such as
[NettyRpcEnv.scala#L205](https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/rpc/netty/NettyRpcEnv.scala#L205),
why we don't let `org.apache.spark.network.protocol.RpcFailure` hold one
`Throwable` body message instead of a `String` error message. Because we reply
back error message by `RpcResponseCallback.onSuccess`, the `onSuccess` and
`onFailure` can have different behavior.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]