Skip to content
Snippets Groups Projects
Commit fbf75738 authored by Yin Huai's avatar Yin Huai Committed by Andrew Or
Browse files

[SPARK-7287] [SPARK-8567] [TEST] Add sc.stop to applications in SparkSubmitSuite

Hopefully, this suite will not be flaky anymore.

Author: Yin Huai <yhuai@databricks.com>

Closes #7027 from yhuai/SPARK-8567 and squashes the following commits:

c0167e2 [Yin Huai] Add sc.stop().
parent cec98525
No related branches found
No related tags found
No related merge requests found
...@@ -548,6 +548,7 @@ object JarCreationTest extends Logging { ...@@ -548,6 +548,7 @@ object JarCreationTest extends Logging {
if (result.nonEmpty) { if (result.nonEmpty) {
throw new Exception("Could not load user class from jar:\n" + result(0)) throw new Exception("Could not load user class from jar:\n" + result(0))
} }
sc.stop()
} }
} }
...@@ -573,6 +574,7 @@ object SimpleApplicationTest { ...@@ -573,6 +574,7 @@ object SimpleApplicationTest {
s"Master had $config=$masterValue but executor had $config=$executorValue") s"Master had $config=$masterValue but executor had $config=$executorValue")
} }
} }
sc.stop()
} }
} }
......
...@@ -38,6 +38,7 @@ object Main { ...@@ -38,6 +38,7 @@ object Main {
val df = hc.createDataFrame(Seq(MyCoolClass("1", "2", "3"))) val df = hc.createDataFrame(Seq(MyCoolClass("1", "2", "3")))
df.collect() df.collect()
println("Regression test for SPARK-8489 success!") println("Regression test for SPARK-8489 success!")
sc.stop()
} }
} }
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment