Skip to content

Commit 4aa56df

Browse files
committed
[EXT][SPARK-16385][core] Catch correct exception when calling method via reflection. apache#14056
1 parent 6c36c35 commit 4aa56df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/util/Utils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,7 @@ private[spark] object Utils extends Logging {
17731773
.invoke(process, timeoutMs.asInstanceOf[java.lang.Long], TimeUnit.MILLISECONDS)
17741774
.asInstanceOf[Boolean]
17751775
} catch {
1776-
case _: NoSuchMethodError =>
1776+
case _: NoSuchMethodException =>
17771777
// Otherwise implement it manually
17781778
var terminated = false
17791779
val startTime = System.currentTimeMillis

0 commit comments

Comments
 (0)