Skip to content

Commit d334bfb

Browse files
author
Andrew Or
committed
[SPARK-6132][HOTFIX] ContextCleaner InterruptedException should be quiet
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 <[email protected]> Closes apache#4882 from andrewor14/cleaner-interrupt and squashes the following commits: 8652120 [Andrew Or] Just a hot fix
1 parent 1f1fccc commit d334bfb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/scala/org/apache/spark/ContextCleaner.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ private[spark] class ContextCleaner(sc: SparkContext) extends Logging {
168168
}
169169
}
170170
} catch {
171+
case ie: InterruptedException if stopped => // ignore
171172
case e: Exception => logError("Error in cleaning thread", e)
172173
}
173174
}

0 commit comments

Comments
 (0)