TanYuxin-tyx commented on a change in pull request #17936:
URL: https://github.com/apache/flink/pull/17936#discussion_r782807581



##########
File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/io/network/partition/SortMergeResultPartitionReadSchedulerTest.java
##########
@@ -192,6 +199,131 @@ public void testOnReadBufferRequestError() throws 
Exception {
         assertAllResourcesReleased();
     }
 
+    @Test
+    public void testRequestTimeoutIsRefreshedButFailed() throws Exception {
+        Duration bufferRequestTimeout = Duration.ofSeconds(3);
+        FakedBatchShuffleReadBufferPool bufferPool =
+                new FakedBatchShuffleReadBufferPool(bufferSize * 2, 
bufferSize, true);
+        FakedSortMergeResultPartitionReadScheduler readScheduler =
+                new FakedSortMergeResultPartitionReadScheduler(
+                        bufferPool, executor, this, bufferRequestTimeout);
+
+        SortMergeSubpartitionReader subpartitionReader0 =
+                readScheduler.crateSubpartitionReader(
+                        new NoOpBufferAvailablityListener(), 0, 
partitionedFile);
+        SortMergeSubpartitionReader subpartitionReader1 =

Review comment:
       Fixed it by using only one reader.




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to