Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kafka how to set producer retries to Infinity

How can I set the spring-boot property : spring.kafka.producer.retries to Integer.MAX_VALUE ?

Is it working to unset this property or this will default to 0 ?

@See default kafka in KIP https://cwiki.apache.org/confluence/display/KAFKA/KIP-98+-+Exactly+Once+Delivery+and+Transactional+Messaging

like image 428
JohnD Avatar asked Jan 02 '23 13:01

JohnD


1 Answers

According to the Kafka docs it defaults to Integer.MAX_VALUE (at least with the current version), which concurs with the KIP.

like image 106
Gary Russell Avatar answered Jan 04 '23 17:01

Gary Russell