This is my config:
props.put(ProducerConfig.ACKS_CONFIG, "all");
props.put(ProducerConfig.RETRIES_CONFIG, "1");
props.put(ProducerConfig.LINGER_MS_CONFIG, "1");
and
try {
producer.send(record);
} catch (Throwable ex) {
log.error(ex, "exception.");
}
but we found message missing.
if the network dithering will lead this?
do we need to send with Callback?
producer.send(record, new Callback() {
@Override
public void onCompletion(RecordMetadata metadata, Exception exception) {}
})