slachiewicz opened a new pull request, #346:
URL: https://github.com/apache/flink-connector-kafka/pull/346

   ## What is the purpose of the change
   
   When a Kafka E2E test fails in CI, the job log has no JobManager or 
TaskManager output, which leaves FLINK-41515 undiagnosable. The containers' 
stdout reaches the test log at INFO through the `FlinkContainerTestEnvironment` 
logger, which `tools/ci/log4j.properties` sets to WARN, and CI uploads no 
artifacts. This PR logs the container output only when a test fails, so passing 
builds keep the log size set by FLINK-36278.
   
   ## Brief change log
   
     - `ContainerLogsOnFailure`, a JUnit 5 `TestWatcher`, logs the last 3,000 
lines of the JobManager, TaskManager and Kafka container output at WARN, on the 
first failed test of a class
     - `KafkaSinkE2ECase` and `KafkaSourceE2ECase` register it
   
   ## Verifying this change
   
   This change is test infrastructure without test coverage of its own. I have 
not run the E2E tests with a forced failure.
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies: no
     - The public API: no
     - Checkpointed state, its serializers, or exactly-once delivery: no
     - The per-record code paths: no
   
   ## Documentation
   
     - Does this pull request introduce a new feature? no
     - If yes, how is the feature documented? not applicable
     - If the docs changed, are both `docs/content` and `docs/content.zh` 
updated? not applicable
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: Claude Code (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