Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10835#discussion_r50322250
  
    --- Diff: core/src/test/scala/org/apache/spark/SparkFunSuite.scala ---
    @@ -42,6 +42,8 @@ private[spark] abstract class SparkFunSuite extends 
FunSuite with Logging {
           test()
         } finally {
           logInfo(s"\n\n===== FINISHED $shortSuiteName: '$testName' =====\n")
    +      // Avoid leaking map entries in tests that use accumulators without 
SparkContext
    +      Accumulators.clear()
    --- End diff --
    
    accumulators are cleaned lazily from GC, so they're usually not cleaned up 
by the time the test finishes. Actually most of the time this map won't be 
empty.


---
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]

Reply via email to