Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

aws-blog-kinesis-producer-library: exponential backoff with no upper limit #64

Open
tflinz opened this issue Oct 7, 2016 · 1 comment

Comments

@tflinz
Copy link

tflinz commented Oct 7, 2016

RetryingBatchedClickEventsToKinesis.java

Line 63:

Math.min(MAX_BACKOFF, backoff *= 2);

Should read:

backoff = Math.min(MAX_BACKOFF, backoff * 2);
@tflinz
Copy link
Author

tflinz commented Oct 7, 2016

backoff pattern you'd observe currently would be:

100
200
400
800
1600
3200
6400
12800
25600
51200
102400
204800
409600
819200
1638400
3276800
6553600
13107200
26214400
52428800
104857600
209715200
419430400
838860800
1677721600
-939524096
-1879048192
536870912
1073741824
-2147483648
...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant