You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Manikumar (JIRA)" <ji...@apache.org> on 2018/03/17 13:30:00 UTC

[jira] [Resolved] (KAFKA-5187) producer.close() times out at 30 seconds

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

Manikumar resolved KAFKA-5187.
------------------------------
    Resolution: Not A Problem

Please reopen if the issue still exists.

> producer.close() times out at 30 seconds
> ----------------------------------------
>
>                 Key: KAFKA-5187
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5187
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients
>    Affects Versions: 0.10.1.1
>            Reporter: Somnath Choudhuri
>            Priority: Major
>
> In the code below, send() is successful and returns immediately. However producer.close() hangs and times out after 30 seconds.
> 		 producer.send(new ProducerRecord<String, String>(topic, "0", "test string 0")); 
> 		 System.out.println("Send successful");
> 		 
> 		 long start_time = System.currentTimeMillis();
> 		 producer.close();
> 		 long end_time = System.currentTimeMillis();
> 		 
> 		 System.out.println("Time spent in closing Producer: " + (end_time - start_time));



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