HeartSaVioR commented on a change in pull request #25709:
[SPARK-29007][STREAMING][MLLIB] Enforce not leaking SparkContext in tests which
creates new StreamingContext with new SparkContext
URL: https://github.com/apache/spark/pull/25709#discussion_r322214383
##########
File path:
streaming/src/test/scala/org/apache/spark/streaming/DStreamClosureSuite.scala
##########
@@ -29,24 +29,14 @@ import
org.apache.spark.util.ReturnStatementInClosureException
/**
* Test that closures passed to DStream operations are actually cleaned.
*/
-class DStreamClosureSuite extends SparkFunSuite with BeforeAndAfterAll {
- private var ssc: StreamingContext = null
+class DStreamClosureSuite extends SparkFunSuite with LocalStreamingContext
with BeforeAndAfterAll {
Review comment:
This test suites changed initializing SparkContext and StreamingContext "per
suite" to "per test" - checking elapsed times...
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]