Github user aarondav commented on a diff in the pull request: https://github.com/apache/spark/pull/3380#discussion_r21098293 --- 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) + + --- End diff -- extra newline
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org