You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Marcelo Vanzin (JIRA)" <ji...@apache.org> on 2016/07/05 20:21:11 UTC

[jira] [Commented] (SPARK-16385) NoSuchMethodException thrown by Utils.waitForProcess

    [ https://issues.apache.org/jira/browse/SPARK-16385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15363153#comment-15363153 ] 

Marcelo Vanzin commented on SPARK-16385:
----------------------------------------

Here's what I see when running unit tests on java 7:

{noformat}
Exception in thread "ExecutorRunner for app-20160705131725-0000/1" java.lang.NoSuchMethodException: java.lang.Process.waitFor(long, java.util.concurrent.TimeUnit)
        at java.lang.Class.getMethod(Class.java:1678)
        at org.apache.spark.util.Utils$.waitForProcess(Utils.scala:1812)
        at org.apache.spark.util.Utils$.terminateProcess(Utils.scala:1783)
        at org.apache.spark.deploy.worker.ExecutorRunner.org$apache$spark$deploy$worker$ExecutorRunner$$killProcess(ExecutorRunner.scala:101)
        at org.apache.spark.deploy.worker.ExecutorRunner.org$apache$spark$deploy$worker$ExecutorRunner$$fetchAndRunExecutor(ExecutorRunner.scala:185)
        at org.apache.spark.deploy.worker.ExecutorRunner$$anon$1.run(ExecutorRunner.scala:73)
{noformat}


> NoSuchMethodException thrown by Utils.waitForProcess
> ----------------------------------------------------
>
>                 Key: SPARK-16385
>                 URL: https://issues.apache.org/jira/browse/SPARK-16385
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.0.0
>            Reporter: Marcelo Vanzin
>
> The code in Utils.waitForProcess catches the wrong exception: when using reflection, {{NoSuchMethodException}} is thrown, but the code catches {{NoSuchMethodError}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org