[ 
https://issues.apache.org/jira/browse/KAFKA-20522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lianet Magrans resolved KAFKA-20522.
------------------------------------
    Resolution: Fixed

> 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
>            Priority: Minor
>
> 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)

Reply via email to