Skip to content

Commit abdcec6

Browse files
Andrew Orsrowen
authored andcommitted
[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 #4882 from andrewor14/cleaner-interrupt and squashes the following commits: 8652120 [Andrew Or] Just a hot fix
1 parent 06d883c commit abdcec6

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
@@ -161,6 +161,7 @@ private[spark] class ContextCleaner(sc: SparkContext) extends Logging {
161161
}
162162
}
163163
} catch {
164+
case ie: InterruptedException if stopped => // ignore
164165
case e: Exception => logError("Error in cleaning thread", e)
165166
}
166167
}

0 commit comments

Comments
 (0)