Github user jiangxb1987 commented on a diff in the pull request:
https://github.com/apache/spark/pull/20893#discussion_r177366836
--- Diff:
core/src/main/scala/org/apache/spark/launcher/LauncherBackend.scala ---
@@ -114,10 +114,10 @@ private[spark] abstract class LauncherBackend {
override def close(): Unit = {
try {
+ _isConnected = false
super.close()
} finally {
onDisconnected()
--- End diff --
This is not quite directly related, but this should means it is safe to
move `_isConnected = false` to before `onDisconnected()`.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]