AHeise commented on a change in pull request #11534: [FLINK-16537][network] 
Implement ResultPartition state recovery for unaligned checkpoint
URL: https://github.com/apache/flink/pull/11534#discussion_r402906301
 
 

 ##########
 File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/io/network/api/writer/RecordWriterTest.java
 ##########
 @@ -464,6 +456,59 @@ public void testIsAvailableOrNot() throws Exception {
                }
        }
 
+       @Test
+       public void testEmitRecordWithPartitionStateRecovery() throws Exception 
{
+               final int totalBuffers = 10; // enough for both states and 
normal records
+               final int totalStates = 2;
+               final int[] states = {1, 2, 3, 4};
+               final int[] records = {5, 6, 7, 8};
+               final int bufferSize = states.length * Integer.BYTES;
+
+               final NetworkBufferPool globalPool = new 
NetworkBufferPool(totalBuffers, bufferSize , 1);
 
 Review comment:
   nit: space

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to