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_r322214922
##########
File path:
streaming/src/test/scala/org/apache/spark/streaming/ReceiverInputDStreamSuite.scala
##########
@@ -30,15 +30,10 @@ import
org.apache.spark.streaming.receiver.{BlockManagerBasedStoreResult, Receiv
import org.apache.spark.streaming.scheduler.ReceivedBlockInfo
import org.apache.spark.streaming.util.{WriteAheadLogRecordHandle,
WriteAheadLogUtils}
-class ReceiverInputDStreamSuite extends TestSuiteBase with BeforeAndAfterAll {
-
- override def afterAll(): Unit = {
- try {
- StreamingContext.getActive().foreach(_.stop())
- } finally {
- super.afterAll()
- }
- }
+class ReceiverInputDStreamSuite
Review comment:
This test suites changed cleaning up 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]