Github user cloud-fan commented on a diff in the pull request: https://github.com/apache/spark/pull/16989#discussion_r114953370 --- Diff: core/src/test/scala/org/apache/spark/scheduler/MapStatusSuite.scala --- @@ -128,4 +130,23 @@ class MapStatusSuite extends SparkFunSuite { assert(size1 === size2) assert(!success) } + + test("Blocks which are bigger than 2 * average size should not be underestimated.") { + val sizes = Array.concat(Array.fill[Long](1000)(1L), (1000L to 2000L).toArray) --- End diff -- can we test just several blocks? e.g. `val sizes = Array(1L, 2L, 1000L, 2000L)`, then we can check all the expected sizes.
--- 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