fix: correct exponential backoff by replacing XOR with bit shift#723
fix: correct exponential backoff by replacing XOR with bit shift#723m-iskw335 wants to merge 1 commit intogoogleapis:mainfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
318bf9b to
16406f0
Compare
|
@Sivasankaran25 |
Thank you for bringing this to our attention. We truly appreciate you flagging this PR, we will file a internally. |
Description
Problem:
^), which is a logical error for exponential backoff in Go. This causes the retry delay to drop to 0 seconds on the third attempt.Solution
Replaced
delayMultiplier^attemptwith1 << attemptto ensure proper exponential backoff (1s, 2s, 4s...).