You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by zsxwing <gi...@git.apache.org> on 2017/12/18 23:42:33 UTC
[GitHub] spark pull request #19968: [SPARK-22769][CORE] When driver stopping, there i...
Github user zsxwing commented on a diff in the pull request:
https://github.com/apache/spark/pull/19968#discussion_r157631169
--- Diff: core/src/main/scala/org/apache/spark/rpc/netty/Dispatcher.scala ---
@@ -100,6 +102,7 @@ private[netty] class Dispatcher(nettyEnv: NettyRpcEnv, numUsableCores: Int) exte
return
}
unregisterRpcEndpoint(rpcEndpointRef.name)
+ endpointsIsStopped.putIfAbsent(rpcEndpointRef.name, true)
--- End diff --
this will be a memory leak. Spark may create some temp RpcEndpoints. You can make `postMessage` return `Some(RpcEndpointNotFoundException)` and ignore it.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org