Skip to content

Commit

Permalink
[FLINK-21450][test] Enables tests that were disabled for the Adaptive…
Browse files Browse the repository at this point in the history
…Scheduler

For a few tests, a proper explanation is added why the tests are still disabled
  • Loading branch information
XComp committed Mar 25, 2024
1 parent a1d17cc commit 8f06fb4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
import org.apache.flink.util.function.FunctionWithException;
import org.apache.flink.util.function.ThrowingConsumer;

import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.api.io.TempDir;
Expand Down Expand Up @@ -198,7 +197,6 @@ void testContinuousTextFileSource(
* record format (text lines) and restarts TaskManager.
*/
@Test
@Tag("org.apache.flink.testutils.junit.FailsWithAdaptiveScheduler") // FLINK-21450
void testContinuousTextFileSourceWithTaskManagerFailover(@TempDir java.nio.file.Path tmpTestDir)
throws Exception {
// This test will kill TM, so we run it in a new cluster to avoid affecting other tests
Expand Down
2 changes: 1 addition & 1 deletion flink-end-to-end-tests/run-nightly-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function run_group_2 {
# Sticky Scheduling
################################################################################

if [[ ${PROFILE} != *"enable-adaptive-scheduler"* ]]; then #FLINK-21450
if [[ ${PROFILE} != *"enable-adaptive-scheduler"* ]]; then # FLINK-34416
run_test "Local recovery and sticky scheduling end-to-end test" "$END_TO_END_DIR/test-scripts/test_local_recovery_and_scheduling.sh 4 3 hashmap false false 100" "skip_check_exceptions"
run_test "Local recovery and sticky scheduling end-to-end test" "$END_TO_END_DIR/test-scripts/test_local_recovery_and_scheduling.sh 4 3 hashmap false true 100" "skip_check_exceptions"
run_test "Local recovery and sticky scheduling end-to-end test" "$END_TO_END_DIR/test-scripts/test_local_recovery_and_scheduling.sh 4 10 rocks false false 100" "skip_check_exceptions"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,9 @@ void testResourceManagerConnectionAfterStart() throws Exception {
* if this execution fails.
*/
@Test
@Tag("org.apache.flink.testutils.junit.FailsWithAdaptiveScheduler") // FLINK-21450
// The AdaptiveScheduler doesn't support partial recovery but restarts all Executions in case of
// a local failure.
@Tag("org.apache.flink.testutils.junit.FailsWithAdaptiveScheduler")
void testRequestNextInputSplitWithLocalFailover() throws Exception {

configuration.set(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,18 @@ public class DefaultSchedulerLocalRecoveryITCase extends TestLogger {
private static final long TIMEOUT = 10_000L;

@Test
@Category(FailsWithAdaptiveScheduler.class) // FLINK-21450
// The AdaptiveScheduler doesn't update the ExecutionGraph but creates a new Execution during
// local recovery. Recovering can also lead to a change in parallelism which makes the
// executionHistory non-linear. The lack of a linear executionHistory prevents us from applying
// the same test for the AdaptiveScheduler.
@Category(FailsWithAdaptiveScheduler.class)
public void testLocalRecoveryFull() throws Exception {
testLocalRecoveryInternal("full");
}

@Test
@Category(FailsWithAdaptiveScheduler.class) // FLINK-21450
// see comment in #testLocalRecoveryFull
@Category(FailsWithAdaptiveScheduler.class)
public void testLocalRecoveryRegion() throws Exception {
testLocalRecoveryInternal("region");
}
Expand Down

0 comments on commit 8f06fb4

Please sign in to comment.