spuru9 opened a new pull request, #4631:
URL: https://github.com/apache/flink-cdc/pull/4631

   ## What is the purpose of this pull request?
   
   First step for 
[FLINK-41608](https://issues.apache.org/jira/browse/FLINK-41608). In the 
intermittent `UdfE2eITCase` (java, batch) failure, the job ends about 2 s after 
it starts, and the test then waits 3 minutes for output that never comes. The 
failure shows only the TaskManager output, which does not say why the job 
ended. With this change the wait stops soon after the job ends and says how it 
ended, so the next CI failure shows the cause. The ticket stays open to fix 
that cause.
   
   ## Brief change log
   
   - `waitUntilSpecificEvent` and `waitUntilLogContains` now share one wait 
loop.
   - A wait on the JobManager or TaskManager output gives up once every job of 
the cluster has ended, after a 10 s grace period for output still in flight, 
instead of running until the timeout.
   - Its message lists each job's final state and, for a failed job, its 
failure cause from the job result.
   
   ---
   
   ## Verifying this change
   
   This change is a test-harness change covered by the existing e2e tests, and 
was verified manually:
   
   - Locally with Flink 1.20.3 and JDK 11: `UdfE2eITCase` 16/16 and 
`SchemaEvolveE2eITCase` 22/22, including the tests that fail a job on purpose 
and then read the JobManager log.
   - With a throwaway test whose job fails on a schema change, the wait gave up 
10 s after the job failed, and its message held `FAILED` and the 
`UnsupportedSchemaChangeEventException` cause.
   - 50 local runs of the failing variant (java, batch, parallelism 4) all 
passed: the flake did not reproduce locally.
   
   ## Documentation
   
   - Does this pull request introduce a new feature? no
   - If yes, how is the feature documented? not applicable
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: Claude Code (Claude Opus 5.5)
   


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