Skip to content
Snippets Groups Projects
Commit 9865fd6a authored by Prashant Sharma's avatar Prashant Sharma
Browse files

Fixed non termination of Executor backend, when sc.stop is not called.

parent 42f30b55
No related branches found
No related tags found
No related merge requests found
...@@ -165,7 +165,7 @@ private[spark] class Worker( ...@@ -165,7 +165,7 @@ private[spark] class Worker(
logInfo("Asked to kill unknown executor " + fullId) logInfo("Asked to kill unknown executor " + fullId)
} }
case _: Terminated | DisassociatedEvent | AssociationErrorEvent => case DisassociatedEvent(_, _, _) =>
masterDisconnected() masterDisconnected()
case RequestWorkerState => { case RequestWorkerState => {
......
...@@ -81,7 +81,7 @@ private[spark] class StandaloneExecutorBackend( ...@@ -81,7 +81,7 @@ private[spark] class StandaloneExecutorBackend(
executor.launchTask(this, taskDesc.taskId, taskDesc.serializedTask) executor.launchTask(this, taskDesc.taskId, taskDesc.serializedTask)
} }
case _: Terminated | DisassociatedEvent | AssociationErrorEvent => case DisassociatedEvent(_, _, _) =>
logError("Driver terminated or disconnected! Shutting down.") logError("Driver terminated or disconnected! Shutting down.")
System.exit(1) System.exit(1)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment