wsry commented on a change in pull request #13924:
URL: https://github.com/apache/flink/pull/13924#discussion_r602080710
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/SortMergeResultPartition.java
##########
@@ -455,4 +458,28 @@ public int getNumberOfQueuedBuffers(int
targetSubpartition) {
PartitionedFile getResultFile() {
return resultFile;
}
+
+ @VisibleForTesting
+ SortMergeResultPartitionReader getPartitionReader() {
+ return partitionReader;
+ }
+
+ private int[] getRandomSubpartitionOrder(int numSubpartitions) {
+ Random random = new Random();
+
+ int shift = random.nextInt(numSubpartitions);
Review comment:
I replace this code with what @gaoyunhaii suggested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]