You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Somnath Choudhuri (JIRA)" <ji...@apache.org> on 2017/05/07 22:27:04 UTC
[jira] [Created] (KAFKA-5187) producer.close() times out at 30
seconds
Somnath Choudhuri created KAFKA-5187:
----------------------------------------
Summary: 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
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
(v6.3.15#6346)