Hello,
I notice that 0.9 Kafka release had a new flush() call added to the producer API (See https://issues.apache.org/jira/browse/KAFKA-1865). I am trying to understand what is the difference between producer.flush() and producer.close()? They seem to be doing pretty similar work. If not, can someone please explain? KAFKA-1865 mentions that flush() would ensure “that any record enqueued prior to flush() would have completed being sent (either successfully or not).” and javadocs for close() say that “Close this producer. This method blocks until al in-flight requests complete.” Does ‘in-flight requests complete’ mean same as enqueued records are sent to Kafka? Kashif
