退订
On 11/14/2023 18:19,王有胜 wrote:
Thanks for your answer, I set a large min.insync.replicas for the
topic and I can see in the console log that Kafka Sender keeps
retrying.
Haruki Okada 于2023年11月13日周一 16:50写道:
will the callback be executed for each retry
The callback will be triggered only
Thanks for your answer, I set a large min.insync.replicas for the
topic and I can see in the console log that Kafka Sender keeps
retrying.
Haruki Okada 于2023年11月13日周一 16:50写道:
>
> > will the callback be executed for each retry
>
> The callback will be triggered only once when the produce is final
> will the callback be executed for each retry
The callback will be triggered only once when the produce is finally ended
up with succeeded or failed after retries.
> is there any way to make Kafka producers retry locally
Easiest way would be to make produce failing artificially. it can be done
Hi Community, I use Kafka Java Client to send messages asynchronously.
I wonder if the producer fails to send a message, during the retry
period, will the callback be executed for each retry?
I debugged the source code
org.apache.kafka.clients.producer.internals.Sender#canRetry and
org.apache.kafka