You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "sanghyeok An (Jira)" <ji...@apache.org> on 2026/04/23 13:46:00 UTC

[jira] [Created] (KAFKA-20522) Refine test coverage for consumer close-on-interrupt best-effort behavior

sanghyeok An created KAFKA-20522:
------------------------------------

             Summary: Refine test coverage for consumer close-on-interrupt best-effort behavior
                 Key: KAFKA-20522
                 URL: https://issues.apache.org/jira/browse/KAFKA-20522
             Project: Kafka
          Issue Type: Improvement
            Reporter: sanghyeok An
            Assignee: sanghyeok An


Improve test coverage for consumer close-on-interrupt behavior by replacing flaky integration-level verification with assertions that match the current best-effort semantics. 

Instead of checking whether the broker actually observes group leave completion, the updated tests will verify that the consumer triggers the leave logic as expected during close.

This may involve either moving the current integration test to a unit test, or improving the integration test itself. This makes the test more deterministic and better aligned with the intended behavior. 

 
 
Related Test codes
- PlaintextConsumerTest testCloseLeavesGroupOnInterrupt (classic)
 
 
Related Issues
- https://issues.apache.org/jira/browse/KAFKA-17397
- https://issues.apache.org/jira/browse/KAFKA-18031



--
This message was sent by Atlassian Jira
(v8.20.10#820010)