Github user tedyu commented on a diff in the pull request:
https://github.com/apache/spark/pull/9384#discussion_r43560077
--- Diff:
core/src/test/scala/org/apache/spark/scheduler/SparkListenerSuite.scala ---
@@ -142,6 +142,7 @@ class SparkListenerSuite extends SparkFunSuite with
LocalSparkContext with Match
stageInfo.submissionTime should be ('defined)
stageInfo.completionTime should be ('defined)
taskInfoMetrics.length should be {4}
+ sc.stop()
--- End diff --
Without creating SparkContext, the test fails with:
```
- onTaskGettingResult() called when result fetched remotely *** FAILED ***
java.lang.NullPointerException:
at
org.apache.spark.scheduler.SparkListenerSuite$$anonfun$10.apply$mcV$sp(SparkListenerSuite.scala:273)
at
org.apache.spark.scheduler.SparkListenerSuite$$anonfun$10.apply(SparkListenerSuite.scala:270)
at
org.apache.spark.scheduler.SparkListenerSuite$$anonfun$10.apply(SparkListenerSuite.scala:270)
at
org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
at org.scalatest.Transformer.apply(Transformer.scala:22)
at org.scalatest.Transformer.apply(Transformer.scala:20)
at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:166)
at org.apache.spark.SparkFunSuite.withFixture(SparkFunSuite.scala:42)
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]