Samrat002 commented on code in PR #27921:
URL: https://github.com/apache/flink/pull/27921#discussion_r3098934664


##########
flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptive/Executing.java:
##########
@@ -300,6 +309,69 @@ private void initializeFailedCheckpointCountdownIfUnset() {
         }
     }
 
+    /**
+     * Actively triggers a checkpoint to expedite rescaling. Without this, the 
scheduler would
+     * passively wait for the next periodic checkpoint, which could delay 
rescaling significantly
+     * when checkpoint intervals are large.
+     *
+     * <p>Guard conditions:
+     *
+     * <ul>
+     *   <li>Checkpointing must be configured
+     *   <li>Parallelism must have actually changed
+     *   <li>No checkpoint must be currently in progress or being triggered
+     * </ul>
+     */
+    private void triggerCheckpointForRescale() {

Review Comment:
   added tests PTAL 



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