You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "jaikiran pai (JIRA)" <ji...@apache.org> on 2015/01/15 07:54:34 UTC

[jira] [Commented] (KAFKA-1837) Metadata record future never returns on get call after producer is stopped and messages can't be sent

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

jaikiran pai commented on KAFKA-1837:
-------------------------------------

Paul, looking at the code, I can see why this is happening. I have a probable fix but I don't have test to reproduce and verify this. Could you attach the test that you have? In the meantime, I'll check on the dev list if someone can guide me at creating a "real" test (without the mocks) to reproduce this.


> Metadata record future never returns on get call after producer is stopped and messages can't be sent
> -----------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-1837
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1837
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients
>    Affects Versions: 0.8.2
>            Reporter: Paul Pearcy
>            Priority: Minor
>
> When producer stop is called and messages are unable to be sent nothing is ever returned for the futures and the get will block forever. 
> Instead when a producer is stopped and messages are abandoned, the futures should return an exception indicating the failure. 
> I have a test case to reproduce this that I should be able to attach after some rework to move to kafka's producer integration suite. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)