You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by Koraseg <gi...@git.apache.org> on 2018/11/01 09:24:42 UTC

[GitHub] spark pull request #22894: [SPARK-25885][Core][Minor] HighlyCompressedMapSta...

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

    https://github.com/apache/spark/pull/22894#discussion_r229982100
  
    --- Diff: core/src/main/scala/org/apache/spark/scheduler/MapStatus.scala ---
    @@ -189,13 +190,12 @@ private[spark] class HighlyCompressedMapStatus private (
         emptyBlocks.readExternal(in)
         avgSize = in.readLong()
         val count = in.readInt()
    -    val hugeBlockSizesArray = mutable.ArrayBuffer[Tuple2[Int, Byte]]()
    +    hugeBlockSizes = new util.HashMap[Int, Byte](count).asScala
    --- End diff --
    
    Unfortunately, its default implementation in Builder trait is empty, and it is not overridden for the mutable map.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org