kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Gustafson (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (KAFKA-6768) Producer may hang in close with pending transaction
Date Mon, 09 Apr 2018 22:40:00 GMT

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

Jason Gustafson resolved KAFKA-6768.
------------------------------------
    Resolution: Fixed

> Producer may hang in close with pending transaction
> ---------------------------------------------------
>
>                 Key: KAFKA-6768
>                 URL: https://issues.apache.org/jira/browse/KAFKA-6768
>             Project: Kafka
>          Issue Type: Bug
>          Components: producer 
>            Reporter: Jason Gustafson
>            Assignee: Jason Gustafson
>            Priority: Major
>             Fix For: 1.1.1
>
>
> There is an edge case for transactional producers which will cause close() to hang indefinitely
(unless used with a timeout). Say, for example, that the producer is trying to send an AddPartitionsToTxn
request to the broker. Upon shutdown, the Sender's running flag will be set to false and we
will begin graceful shutdown. Graceful shutdown will not complete, however, until we can send
the AddPartitionsToTxn request. But the latter is blocked by the fact that the running flag
is disabled. So no progress can be made and shutdown cannot complete.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message