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

    https://github.com/apache/spark/pull/3380#discussion_r21098319
  
    --- Diff: 
core/src/test/scala/org/apache/spark/scheduler/SparkListenerSuite.scala ---
    @@ -202,6 +209,60 @@ class SparkListenerSuite extends FunSuite with 
LocalSparkContext with Matchers
         stageInfo.rddInfos.forall(_.numPartitions == 4) should be {true}
       }
     
    +  //SEE SPARK-2208: hack BlockManager to have a sleep when read shuffle 
data
    +  test("local metrics with fetchWaitTime") {
    +    val listener = new SaveStageAndTaskInfo
    +    val sc2 = new SparkContext("local", "SparkListenerSuite2")
    +
    +    val env = SparkEnv.get
    +    val bm: BlockManager = env.blockManager
    +    val numOfCore = Runtime.getRuntime().availableProcessors()
    +    val maxMemory = getMaxMemory(env.conf)
    +
    +    val hackedBlockManager = new SlowBlockManager(env.executorId, 
env.actorSystem, bm.master,
    +      env.serializer, maxMemory, env.conf, env.mapOutputTracker, 
env.shuffleManager, env.blockTransferService, env.securityManager,numOfCore)
    +
    +
    +    val hackEnv = new SparkEnv(env.executorId, env.actorSystem, 
env.serializer, env.closureSerializer, env.cacheManager, env.mapOutputTracker,
    --- End diff --
    
    line length issue here too


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