Hello, I was hoping someone could help clarify what the javadocs say.
http://kafka.apache.org/23/javadoc/org/apache/kafka/clients/producer/Callback.html Are there cases where metadata has -1 values (which indicate an error) AND have exception set to null? We're trying to tighten our ingest layer (HTTP -> kafka) and it wasn't obvious in the kafka client source code that an exception will never be null if a record was unsuccessfully accepted by the brokers. metadata - The metadata for the record that was sent (i.e. the partition and offset). An empty metadata with -1 value for all fields except for topicPartition will be returned if an error occurred. exception - The exception thrown during processing of this record. Null if no error occurred...... Thanks, Brian