Closed novemberborn closed 6 months ago
We have encountered a CRITICAL failure where-in retries are performed without delay. The issue is likely related to the problem outlined in this ticket since the issue occurs after 1025 retries.
The problem can be reproduced using a retry with new ExponentialBackoff({ initialDelay: 1_000, maxDelay: 100 })
. After ~1025 attempts, the retries occur much more aggressively than every 100ms.
The issue is critical because the retry loop has the potential to overwhelm downstream systems.
@novemberborn Maybe we should update the title in this ticket to reflect the criticality? Something like, CRITICAL: error state results in retries without delay
Fixed in 3.1.3
Perhaps I'm using it wrong, but after 1025 attempts the jitter in the state goes to
Infinity
and for the 1026th attempt the delay isNaN
.Output: