I am trying to use DeliveryReport handler with Produce. I want to simulate that there is a Kafka problem by tuning off the Kafka server so delivery fails.
However I was expecting to get a DeliveryReport (with an error) almost immidatly but noticed that the producer is retrying the message for like almost 5 minutes before I finally get the DeliveryReport for the message which failed to be sent.
I really want it to fail fast because I am implementing outbox message pattern and handle the retry myself.
I have not configured any defaults for the client. Which timeout settings are involved?
I have seen the following (have I missed any):
transaction.timeout.ms (default 1 min) delivery.timeout.ms (default 2 min)
Still doesn't understand why it took so long before it gave up retrying. I would prefer to stop retrying after like 10 s or so.
I am using the confluent .NET Kafka client.