Skip to content

Commit

Permalink
Always fallback to destroy()
Browse files Browse the repository at this point in the history
  • Loading branch information
nongli committed Dec 31, 2015
1 parent 67611ac commit 9ed4377
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/scala/org/apache/spark/util/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1722,9 +1722,8 @@ private[spark] object Utils extends Logging {
case NonFatal(e) =>
if (!e.isInstanceOf[NoSuchMethodException]) {
logWarning("Exception when attempting to kill process", e)
} else {
process.destroy()
}
process.destroy()
}
if (waitForProcess(process, timeoutMs)) {
Option(process.exitValue())
Expand Down

0 comments on commit 9ed4377

Please sign in to comment.