You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to me that there is an off by 1 error when bootstrapping the retry mechanism (see for example here ) .
By calling AtomicInteger#incrementAndGet() instead of #getAndIncrement() the int iteration starts with 1 instead of 0 which has (at least) these two consequences (ignoring jitter):
there are not numRetries attempts to retry but only numRetries - 1
the first retry attempt is done after 2*firstBackoff (= firstBackoff * 2^1) instead of after firstBackoff (= firstBackoff * 2^0)
The two effects almost compensate each other wrt when the last attempt is roughly performed, so it's certainly not an issue for most cases.
The text was updated successfully, but these errors were encountered:
It seems to me that there is an off by 1 error when bootstrapping the retry mechanism (see for example here ) .
By calling AtomicInteger#incrementAndGet() instead of #getAndIncrement() the int iteration starts with 1 instead of 0 which has (at least) these two consequences (ignoring jitter):
The two effects almost compensate each other wrt when the last attempt is roughly performed, so it's certainly not an issue for most cases.
The text was updated successfully, but these errors were encountered: