You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Gunnar Schulze (JIRA)" <ji...@apache.org> on 2016/06/29 09:38:03 UTC

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

Gunnar Schulze created SPARK-16293:
--------------------------------------

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