GitHub user eatoncys opened a pull request: https://github.com/apache/spark/pull/22053
[SPARK-25069][Core]Using UnsafeAlignedOffset to make the entire record of 8 byte Items aligned like which is used in UnsafeExternalSorter ## What changes were proposed in this pull request? The class of UnsafeExternalSorter used UnsafeAlignedOffset to make the entire record of 8 byte Items aligned, but ShuffleExternalSorter not. The SPARC platform requires this because using a 4 byte Int for record lengths causes the entire record of 8 byte Items to become misaligned by 4 bytes. Using a 8 byte long for record length keeps things 8 byte aligned. ## How was this patch tested? Existing Test. You can merge this pull request into a Git repository by running: $ git pull https://github.com/eatoncys/spark UnsafeAlignedOffset Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/22053.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #22053 ---- commit 8559c454127904ad2d25930d6b743238f0fff46d Author: 10129659 <chen.yanshan@...> Date: 2018-08-09T08:53:59Z Aligned Offset for ShuffleExternalSorter ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org