Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/11747#discussion_r56310739
--- Diff:
core/src/test/scala/org/apache/spark/scheduler/SparkListenerSuite.scala ---
@@ -476,3 +480,19 @@ private class ListenerThatAcceptsSparkConf(conf:
SparkConf) extends SparkListene
var count = 0
override def onJobEnd(job: SparkListenerJobEnd): Unit = count += 1
}
+
+private class SlowShuffleManager(conf: SparkConf) extends
SortShuffleManager(conf) {
+
+ override val shuffleBlockResolver: IndexShuffleBlockResolver =
+ new SlowIndexShuffleBlockResolver(conf)
+
+ private class SlowIndexShuffleBlockResolver(conf: SparkConf,
+ _blockManager:
BlockManager = null)
+ extends IndexShuffleBlockResolver(conf, _blockManager) {
+
+ override def getBlockData(blockId: ShuffleBlockId): ManagedBuffer = {
+ Thread.sleep(1)
+ super.getBlockData(blockId)
+ }
+ }
+}
--- End diff --
I forget whether this will fail style checks without a newline at the end.
Content-wise, this looks good though
---
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]