aiokafka icon indicating copy to clipboard operation
aiokafka copied to clipboard

Added delay to retry connection

Open camcima opened this issue 1 year ago • 3 comments

When a consumer connection breaks, aiokafka goes into a loop trying to reconnect every 1ms, generating a mountain of logs. This PR introduces a delay between connection attempts with the configured retry_backoff_ms parameter.

Addresses issues #496 and #830.

camcima avatar Jun 12 '24 17:06 camcima

Is it possible to have the functionality at the user level where we can catch these network connection errors. Because even with exponential back off it will keep retrying indefinitely

jainal09 avatar Apr 09 '25 18:04 jainal09

#496 I wrote about this issues. @ods can you review it? thx

mashkovd avatar Jun 03 '25 07:06 mashkovd

#496 I wrote about this issues. @ods can you review it? thx

Sorry, my competence is not enough to propose a correct fix to the problem. The suggested change looks rather like a quick-n-dirty workaround. I hope @tvoinarovskyi finds time to take a look.

ods avatar Jun 05 '25 10:06 ods