You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Moses Nakamura (Jira)" <ji...@apache.org> on 2021/07/13 20:10:00 UTC

[jira] [Commented] (KAFKA-3539) KafkaProducer.send() may block even though it returns the Future

    [ https://issues.apache.org/jira/browse/KAFKA-3539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17380148#comment-17380148 ] 

Moses Nakamura commented on KAFKA-3539:
---------------------------------------

So I know what I want to do and I've been trying to put together a prototype in advance of updating the KIP document, but even relatively modest changes seem to break a lot of tests.  [~ewencp] are you an expert in KafkaProducer?  Would you mind taking some time to chat and give me advice on how to proceed?

> KafkaProducer.send() may block even though it returns the Future
> ----------------------------------------------------------------
>
>                 Key: KAFKA-3539
>                 URL: https://issues.apache.org/jira/browse/KAFKA-3539
>             Project: Kafka
>          Issue Type: Bug
>          Components: producer 
>            Reporter: Oleg Zhurakousky
>            Priority: Critical
>              Labels: needs-discussion, needs-kip
>
> You can get more details from the users@kafka.apache.org by searching on the thread with the subject "KafkaProducer block on send".
> The bottom line is that method that returns Future must never block, since it essentially violates the Future contract as it was specifically designed to return immediately passing control back to the user to check for completion, cancel etc.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)