We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c72cd8 commit 589276aCopy full SHA for 589276a
core/src/main/scala/org/apache/spark/util/Utils.scala
@@ -1171,11 +1171,15 @@ private[spark] object Utils extends Logging {
1171
} catch {
1172
case e: ControlThrowable => throw e
1173
case t: Throwable =>
1174
+ val currentThreadName = Thread.currentThread().getName
1175
if (sc != null) {
- logError(s"uncaught error in thread ${Thread.currentThread().getName}, stopping " +
1176
- "SparkContext", t)
+ logError(s"uncaught error in thread $currentThreadName, stopping SparkContext", t)
1177
sc.stop()
1178
}
1179
+ if (!NonFatal(t)) {
1180
+ logError(s"throw uncaught fatal error in thread $currentThreadName", t)
1181
+ throw t
1182
+ }
1183
1184
1185
0 commit comments