MartijnVisser commented on code in PR #30096:
URL: https://github.com/apache/flink/pull/30096#discussion_r4741914214
##########
flink-runtime/src/test/java/org/apache/flink/runtime/scheduler/adaptive/timeline/RescaleTimelineITCaseBase.java:
##########
@@ -61,12 +61,16 @@ protected static Configuration createConfiguration() {
configuration.set(JobManagerOptions.SCHEDULER,
JobManagerOptions.SchedulerType.Adaptive);
configuration.set(
JobManagerOptions.SCHEDULER_SUBMISSION_RESOURCE_STABILIZATION_TIMEOUT,
- Duration.ofMillis(50));
+ // Doubled from 50ms to leave more margin on slow CI machines.
If this test turns
+ // flaky again, increase the value further.
+ Duration.ofMillis(100));
Review Comment:
In CI the second TaskManager was up to 103 ms late, so 100 ms doesn't cover
it either. I think the wait needs to check RUNNING and parallelism 4 in one
condition, and allow only the initial schedule and scale-ups before that.
##########
flink-runtime/src/test/java/org/apache/flink/runtime/scheduler/adaptive/timeline/RescaleTimelineITCaseBase.java:
##########
@@ -61,12 +61,16 @@ protected static Configuration createConfiguration() {
configuration.set(JobManagerOptions.SCHEDULER,
JobManagerOptions.SchedulerType.Adaptive);
configuration.set(
JobManagerOptions.SCHEDULER_SUBMISSION_RESOURCE_STABILIZATION_TIMEOUT,
- Duration.ofMillis(50));
+ // Doubled from 50ms to leave more margin on slow CI machines.
If this test turns
+ // flaky again, increase the value further.
+ Duration.ofMillis(100));
configuration.set(
JobManagerOptions.SCHEDULER_EXECUTING_COOLDOWN_AFTER_RESCALING,
- // Use the 0.1 seconds to trigger the long-time non-terminal
rescale event after a
- // rescaling.
- Duration.ofMillis(100));
+ // Use the 0.2 seconds to trigger the long-time non-terminal
rescale event after a
+ // rescaling. Doubled from 100ms: on a loaded machine the
cooldown could end before
+ // the test cancels or fails the job, closing the rescale as
idle instead of
+ // merging or cancelling it. If those tests turn flaky again,
increase it further.
+ Duration.ofMillis(200));
Review Comment:
Delaying the requirement update by 200 ms still fails the same four tests as
on master. They never need the cooldown to end, so the 60 s you tried for the
cancel test removes the deadline instead of moving it. With it, all four pass
at a 1000 ms delay.
--
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]