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

[jira] [Resolved] (SPARK-16293) SparkAppHandle.getState() returns wrong state in standalone mode if Spark application terminates unexpectedly

     [ https://issues.apache.org/jira/browse/SPARK-16293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen resolved SPARK-16293.
-------------------------------
    Resolution: Duplicate

> SparkAppHandle.getState() returns wrong state in standalone mode if Spark application terminates unexpectedly
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-16293
>                 URL: https://issues.apache.org/jira/browse/SPARK-16293
>             Project: Spark
>          Issue Type: Bug
>    Affects Versions: 1.6.1, 2.0.0
>            Reporter: Gunnar Schulze
>
> When running a Spark application using _org.apache.spark.launcher.SparkLauncher_ on a standalone cluster, _org.apache.spark.launcher.SparkAppHandle.getState()_ returns _State.FINISHED_ instead of _State.FAILED_ if the Spark application terminates unexpectedly.
> The bug can be reproduced using the following code snippet:
> {code}
> object FailingSparkApplication {
> 	def main(args: Array[String]): Unit = {
> 		val context = new SparkContext()
> 		try {
> 			throw new RuntimeException("Application terminated unexpectedly")
> 		} finally {
> 			context.stop()
> 		}
> 	}
> }
> {code}



--
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