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

    https://github.com/apache/spark/pull/22062#discussion_r209262151
  
    --- Diff: 
core/src/main/java/org/apache/spark/shuffle/sort/ShuffleInMemorySorter.java ---
    @@ -94,12 +94,20 @@ public int numRecords() {
       }
     
       public void reset() {
    +    // Reset `pos` here so that `spill` triggered by the below 
`allocateArray` will be no-op.
    +    pos = 0;
    --- End diff --
    
    For my understanding: this is enough to fix the actual issue here right?


---

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

Reply via email to