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 3164112 commit 2382672Copy full SHA for 2382672
core/src/test/scala/org/apache/spark/deploy/SparkSubmitSuite.scala
@@ -499,9 +499,13 @@ class SparkSubmitSuite
499
Seq("./bin/spark-submit") ++ args,
500
new File(sparkHome),
501
Map("SPARK_TESTING" -> "1", "SPARK_HOME" -> sparkHome))
502
- failAfter(60 seconds) { process.waitFor() }
+ val exitCode = failAfter(60 seconds) { process.waitFor() }
503
// Ensure we still kill the process in case it timed out
504
process.destroy()
505
+ // If the process did not return cleanly, fail the test
506
+ if (exitCode != 0) {
507
+ fail(s"Process returned with exit code $exitCode. See the log4j logs for more detail.")
508
+ }
509
}
510
511
private def forConfDir(defaults: Map[String, String]) (f: String => Unit) = {
0 commit comments