Hi, there is a bug in the KafkaProducer#sendAwait.
It checks whether the returned RecordMetadata is null and resumes the continuation with the exception if that is the case.
But a non-null RecordMetadata is passed to the Callback in every case. It just has no offset (-1) and no partition (-1). This means all exceptions are swallowed.
An easy fix is to just check if the exception passed to the Callback is not null and to resume the continuation with that exception if that is the case.