Github user kiszk commented on a diff in the pull request: https://github.com/apache/spark/pull/22754#discussion_r226871894 --- Diff: core/src/main/java/org/apache/spark/util/collection/unsafe/sort/UnsafeSorterSpillWriter.java --- @@ -62,6 +62,8 @@ public UnsafeSorterSpillWriter( int fileBufferSize, ShuffleWriteMetrics writeMetrics, int numRecordsToWrite) throws IOException { + // space used by prefix + len is (4 + 8) bytes --- End diff -- Can we refine this comment to explain more than 12 bytes are required? For example, `space used by prefix + len + recordLength is more than 4 + 8 bytes`?
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org