You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "1996fanrui (via GitHub)" <gi...@apache.org> on 2025/08/25 15:58:05 UTC

[PR] [FLINK-38267][checkpoint] Fix the test timeout for UnalignedCheckpointRescaleWithMixedExchangesITCase.testRescaleFromUnalignedCheckpoint [flink]

1996fanrui opened a new pull request, #26938:
URL: https://github.com/apache/flink/pull/26938

   ## What is the purpose of the change
   
   When one task has multiple inputs, and the unaligned checkpoint will be disabled for all inputs once one input exchange does not support unaligned checkpoint. It caused no inflight buffers, but `UnalignedCheckpointRescaleWithMixedExchangesITCase.testRescaleFromUnalignedCheckpoint` always wait for checkpoint with inflight buffers.
   
   Explicitly specifying rebalance can avoid the forward exchange.
   
   See more from https://github.com/apache/flink/pull/26935#issuecomment-3220787873
   
   ## Brief change log
   
   [FLINK-38267][checkpoint] Fix the test timeout for UnalignedCheckpointRescaleWithMixedExchangesITCase.testRescaleFromUnalignedCheckpoint
   
   Explicitly specifying rebalance can avoid the forward exchange.
   
   
   
   ## Verifying this change
   
   - Change UnalignedCheckpointRescaleWithMixedExchangesITCase.testRescaleFromUnalignedCheckpoint
   - And run it multiple times locally
   
   


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-38267][checkpoint] Fix the test timeout for UnalignedCheckpointRescaleWithMixedExchangesITCase.testRescaleFromUnalignedCheckpoint [flink]

Posted by "flinkbot (via GitHub)" <gi...@apache.org>.
flinkbot commented on PR #26938:
URL: https://github.com/apache/flink/pull/26938#issuecomment-3220845490

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "61645a9735c29eaf32f73c046a817d97a0f2120e",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "61645a9735c29eaf32f73c046a817d97a0f2120e",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 61645a9735c29eaf32f73c046a817d97a0f2120e UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-38267][checkpoint] Fix the test timeout for UnalignedCheckpointRescaleWithMixedExchangesITCase.testRescaleFromUnalignedCheckpoint [flink]

Posted by "1996fanrui (via GitHub)" <gi...@apache.org>.
1996fanrui commented on code in PR #26938:
URL: https://github.com/apache/flink/pull/26938#discussion_r2303372063


##########
flink-tests/src/test/java/org/apache/flink/test/checkpointing/UnalignedCheckpointRescaleWithMixedExchangesITCase.java:
##########
@@ -230,7 +230,7 @@ private static JobClient createMultiInputDAG(StreamExecutionEnvironment env) thr
 
         sourceStream1
                 .rebalance()
-                .connect(forwardedStream)
+                .connect(forwardedStream.rebalance())

Review Comment:
   Thanks @rkhachatryan for the review!
   
   `forwardedStream` means the exchange is forward between `sourceStream2` and `map(x -> x)` task.
   
   This test did not promise the exchange is forward between `map(x -> x)` and `SleepingCoMap` as the both parallelism is from `getRandomParallelism()`.
   
   <img width="1636" height="962" alt="image" src="https://github.com/user-attachments/assets/cb33e839-eced-4432-a734-d785309b549c" />
   



-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-38267][checkpoint] Fix the test timeout for UnalignedCheckpointRescaleWithMixedExchangesITCase.testRescaleFromUnalignedCheckpoint [flink]

Posted by "1996fanrui (via GitHub)" <gi...@apache.org>.
1996fanrui merged PR #26938:
URL: https://github.com/apache/flink/pull/26938


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-38267][checkpoint] Fix the test timeout for UnalignedCheckpointRescaleWithMixedExchangesITCase.testRescaleFromUnalignedCheckpoint [flink]

Posted by "1996fanrui (via GitHub)" <gi...@apache.org>.
1996fanrui commented on PR #26938:
URL: https://github.com/apache/flink/pull/26938#issuecomment-3221785762

   https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=69485&view=logs&j=5c8e7682-d68f-54d1-16a2-a09310218a49&t=9d734c8c-6253-55e6-3bce-47e7cdf68ac4&l=8846
   
   Sometimes, `UnalignedCheckpointRescaleWithMixedExchangesITCase#createMixedComplexityDAG` still throw following exception. I start suspect whether the original bug is fixed or not. 
   
   I have reproduced it on my Mac, I hope I could find the root cause asap and feedback here.
   
   ```
   Aug 25 17:41:35 Caused by: java.lang.UnsupportedOperationException: Cannot rescale the given pointwise partitioner.
   Aug 25 17:41:35 Did you change the partitioner to forward or rescale?
   Aug 25 17:41:35 It may also help to add an explicit shuffle().
   ```
   


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-38267][checkpoint] Fix the test timeout for UnalignedCheckpointRescaleWithMixedExchangesITCase.testRescaleFromUnalignedCheckpoint [flink]

Posted by "rkhachatryan (via GitHub)" <gi...@apache.org>.
rkhachatryan commented on code in PR #26938:
URL: https://github.com/apache/flink/pull/26938#discussion_r2307477286


##########
flink-tests/src/test/java/org/apache/flink/test/checkpointing/UnalignedCheckpointRescaleWithMixedExchangesITCase.java:
##########
@@ -230,7 +230,7 @@ private static JobClient createMultiInputDAG(StreamExecutionEnvironment env) thr
 
         sourceStream1
                 .rebalance()
-                .connect(forwardedStream)
+                .connect(forwardedStream.rebalance())

Review Comment:
   You're right, thanks for the explanation



-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-38267][checkpoint] Fix the test timeout for UnalignedCheckpointRescaleWithMixedExchangesITCase.testRescaleFromUnalignedCheckpoint [flink]

Posted by "rkhachatryan (via GitHub)" <gi...@apache.org>.
rkhachatryan commented on code in PR #26938:
URL: https://github.com/apache/flink/pull/26938#discussion_r2303279253


##########
flink-tests/src/test/java/org/apache/flink/test/checkpointing/UnalignedCheckpointRescaleWithMixedExchangesITCase.java:
##########
@@ -230,7 +230,7 @@ private static JobClient createMultiInputDAG(StreamExecutionEnvironment env) thr
 
         sourceStream1
                 .rebalance()
-                .connect(forwardedStream)
+                .connect(forwardedStream.rebalance())

Review Comment:
   It looks like using FORWARD was the intention behind `forwardedStream`:
   ```
           // Keep the same parallelism to ensure the ForwardPartitioner will be used.
   ```
   
   But now we want to avoid FORWARD in any case, right?
   Would it make sense to rename the variable, change the comment, and add `rebalance` earlier?



-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org