Skip to content

Commit

Permalink
Merge pull request #946 from ScrapCodes/scala-2.10
Browse files Browse the repository at this point in the history
Fixed non termination of Executor backend, when sc.stop is not called and system.exit instead.
  • Loading branch information
mateiz committed Oct 4, 2013
2 parents afd03b2 + 9865fd6 commit 3fe12cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private[spark] class Worker(
logInfo("Asked to kill unknown executor " + fullId)
}

case _: Terminated | DisassociatedEvent | AssociationErrorEvent =>
case DisassociatedEvent(_, _, _) =>
masterDisconnected()

case RequestWorkerState => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private[spark] class StandaloneExecutorBackend(
executor.launchTask(this, taskDesc.taskId, taskDesc.serializedTask)
}

case _: Terminated | DisassociatedEvent | AssociationErrorEvent =>
case DisassociatedEvent(_, _, _) =>
logError("Driver terminated or disconnected! Shutting down.")
System.exit(1)
}
Expand Down

0 comments on commit 3fe12cc

Please sign in to comment.