We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56781a1 commit 0ad34daCopy full SHA for 0ad34da
core/src/test/java/org/apache/spark/shuffle/unsafe/UnsafeShuffleInMemorySorterSuite.java
@@ -115,7 +115,7 @@ public void testSortingManyNumbers() throws Exception {
115
int[] numbersToSort = new int[128000];
116
Random random = new Random(16);
117
for (int i = 0; i < numbersToSort.length; i++) {
118
- numbersToSort[i] = random.nextInt(PackedRecordPointer.MAXIMUM_PARTITION_ID);
+ numbersToSort[i] = random.nextInt(PackedRecordPointer.MAXIMUM_PARTITION_ID + 1);
119
sorter.insertRecord(0, numbersToSort[i]);
120
}
121
Arrays.sort(numbersToSort);
0 commit comments