aboutsummaryrefslogtreecommitdiff
path: root/yarn/src
diff options
context:
space:
mode:
authorWeiqing Yang <yangweiqing001@gmail.com>2017-01-03 09:56:42 +0000
committerSean Owen <sowen@cloudera.com>2017-01-03 09:56:42 +0000
commite5c307c50a660f706799f1f7f6890bcec888d96b (patch)
treec576e5aa397e437836dfb8d098d051f558a1d924 /yarn/src
parentae83c211257c508989c703d54f2aeec8b2b5f14d (diff)
downloadspark-e5c307c50a660f706799f1f7f6890bcec888d96b.tar.gz
spark-e5c307c50a660f706799f1f7f6890bcec888d96b.tar.bz2
spark-e5c307c50a660f706799f1f7f6890bcec888d96b.zip
[MINOR] Add missing sc.stop() to end of examples
## What changes were proposed in this pull request? Add `finally` clause for `sc.stop()` in the `test("register and deregister Spark listener from SparkContext")`. ## How was this patch tested? Pass the build and unit tests. Author: Weiqing Yang <yangweiqing001@gmail.com> Closes #16426 from weiqingy/testIssue.
Diffstat (limited to 'yarn/src')
-rw-r--r--yarn/src/test/scala/org/apache/spark/scheduler/cluster/YarnSchedulerBackendSuite.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/yarn/src/test/scala/org/apache/spark/scheduler/cluster/YarnSchedulerBackendSuite.scala b/yarn/src/test/scala/org/apache/spark/scheduler/cluster/YarnSchedulerBackendSuite.scala
index ffa0b58ee7..4079d9e40f 100644
--- a/yarn/src/test/scala/org/apache/spark/scheduler/cluster/YarnSchedulerBackendSuite.scala
+++ b/yarn/src/test/scala/org/apache/spark/scheduler/cluster/YarnSchedulerBackendSuite.scala
@@ -52,6 +52,7 @@ class YarnSchedulerBackendSuite extends SparkFunSuite with MockitoSugar with Loc
// Serialize to make sure serialization doesn't throw an error
ser.serialize(req)
}
+ sc.stop()
}
}