Github user zsxwing commented on the pull request:
https://github.com/apache/spark/pull/10881#issuecomment-174227028
@nishkamravi2 I suggest that you add a new exception RpcEnvStopException
that extends IllegalStateException. Then you can use RpcEnvStopException in
this line:
https://github.com/apache/spark/blob/7a375bb87a8df56d9dde0c484e725e5c497a9876/core/src/main/scala/org/apache/spark/rpc/netty/Dispatcher.scala#L159
After that, there are two places need to handle this exception:
1. Try-catch RpcEnvStopException in the following line:
https://github.com/apache/spark/blob/7a375bb87a8df56d9dde0c484e725e5c497a9876/core/src/main/scala/org/apache/spark/rpc/netty/NettyRpcEnv.scala#L185
and only log a simple message
2. Check the exception type in the following line:
https://github.com/apache/spark/blob/7a375bb87a8df56d9dde0c484e725e5c497a9876/core/src/main/scala/org/apache/spark/rpc/netty/Outbox.scala#L46
If it's RpcEnvStopException, log a simple message.
---
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]