The GitHub Actions job "Flink Connector Kafka CI" on flink-connector-kafka.git/add-junit-default-timeouts has failed. Run started by GitHub user slachiewicz (triggered by slachiewicz).
Head commit for run: c7a7b5a977ea53c056be04903b1a194c43cfdad0 / Sylwester Lachiewicz <[email protected]> [FLINK-40139][Connectors/Kafka] test: Add default JUnit test timeout to fail hung tests fast A hung test consumed the CI job's whole test-step budget (50 minutes by default, 45 in the weekly run). The step timeout then killed the job: the log did not name the hung test, and every test scheduled after it was lost. The CI failure step prints the surviving JVMs' threads, but only once the step is over. A 15-minute per-method default fails the hung method itself, prints every thread's stack just before the interrupt, and lets the rest of the suite report. The bound is the slowest class on main, KafkaSinkITCase, which finishes in under 12 minutes on JDK 11, 17 and 21; no single method can exceed its class total. A test can override the default with @Timeout, and disabled_on_debug keeps debugger sessions uninterrupted. The default covers test methods only. A lifecycle default would run each @BeforeEach, the test and each @AfterEach on different threads, so a hang in setup or teardown, such as KafkaSinkITCase.tearDown, is still bounded by the CI step timeout alone. The test body runs in a separate thread. In the default same-thread mode JUnit interrupts the test and then waits for it to return, so a method that swallows the interrupt still hangs the job. Do not drop SEPARATE_THREAD as redundant. KafkaTableTestBase opts back into the same thread: the table planner leaves Calcite's metadata handler provider in a thread-local on the thread that ran @BeforeEach, and every Table ITCase fails without it. The settings are JUnit configuration parameters on this module's surefire plugin, so both surefire executions get them. The SQL and end-to-end modules are unchanged: their tests have not been timed against this bound. Report URL: https://github.com/apache/flink-connector-kafka/actions/runs/43735631597 With regards, GitHub Actions via GitBox
