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)