You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Lianet Magrans (Jira)" <ji...@apache.org> on 2024/10/29 14:03:00 UTC
[jira] [Updated] (KAFKA-17519) Define and validate correctness of Consumer.close() and its timeout when thread is interrupted
[ https://issues.apache.org/jira/browse/KAFKA-17519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lianet Magrans updated KAFKA-17519:
-----------------------------------
Fix Version/s: 4.0.0
> Define and validate correctness of Consumer.close() and its timeout when thread is interrupted
> ----------------------------------------------------------------------------------------------
>
> Key: KAFKA-17519
> URL: https://issues.apache.org/jira/browse/KAFKA-17519
> Project: Kafka
> Issue Type: Bug
> Components: clients, consumer
> Affects Versions: 3.9.0
> Reporter: Kirk True
> Assignee: PoAn Yang
> Priority: Major
> Labels: consumer-threading-refactor, kip-848-client-support
> Fix For: 4.0.0
>
>
> The repercussions of a thread's interrupt status on {{Consumer.close()}} and its timeout is not well defined. It _appears_ that the {{ClassicKafkaConsumer}} will continue to attempt to close all its resources even if an interrupt was triggered prior to—or during—the call to {{close()}} though it effectively ignores the user's supplied timeout since each call to {{NetworkClient.poll()}} will throw an {{InterruptException}} after first making an attempt to poll the socket.
> The task here is to review the existing code, verify the behavior with some unit/integration tests, and document it. Furthermore, once the intended behavior has been confirmed, the {{AsyncKafkaConsumer}} should be updated to behave likewise.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)