Azure / Azure/azure-functions-host
Exponential backoff int64 overflow
Open
- Dominant language
- C#
- Stars
- 2k
- Forks
- 482
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 38
Description
The following line in ComputeBackoff can cause a Int64 overflow:
https://github.com/Azure/azure-functions-host/blob/b44799489586e1912877160e3cfee2a276463a37/src/WebJobs.Script/Utility.cs#L123
So far i only noticed it locally, but it can probably happen on azure itself as well!
Contributor guide
Research direction
Open src/WebJobs.Script/Utility.cs at the linked line and inspect ComputeBackoff, focusing on how exponential growth can exceed Int64 limits. Reproduce the overflow with sufficiently large backoff inputs and verify that the completed change prevents the overflow while preserving expected backoff behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100