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

    https://github.com/apache/spark/pull/6707#discussion_r52854361
  
    --- Diff: 
streaming/src/test/scala/org/apache/spark/streaming/ReceivedBlockHandlerSuite.scala
 ---
    @@ -57,10 +56,12 @@ class ReceivedBlockHandlerSuite
       val serializer = new KryoSerializer(conf)
       val manualClock = new ManualClock
       val blockManagerSize = 10000000
    +  val blockManagerBuffer = new ArrayBuffer[BlockManager]()
    --- End diff --
    
    This seems like a huge anti-pattern to me! Unless you're testing the 
interaction of multiple block managers, creating a a buffer to manage cleanup 
seems to suggest bad test design to me.


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