Skip to content

Commit

Permalink
[SPARK-6132][HOTFIX] ContextCleaner InterruptedException should be quiet
Browse files Browse the repository at this point in the history
If the cleaner is stopped, we shouldn't print a huge stack trace when the cleaner thread is interrupted because we purposefully did this.

Author: Andrew Or <andrew@databricks.com>

Closes apache#4882 from andrewor14/cleaner-interrupt and squashes the following commits:

8652120 [Andrew Or] Just a hot fix
  • Loading branch information
Andrew Or committed Mar 4, 2015
1 parent 1f1fccc commit d334bfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/scala/org/apache/spark/ContextCleaner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ private[spark] class ContextCleaner(sc: SparkContext) extends Logging {
}
}
} catch {
case ie: InterruptedException if stopped => // ignore
case e: Exception => logError("Error in cleaning thread", e)
}
}
Expand Down

0 comments on commit d334bfb

Please sign in to comment.