Azure / azure-functions-host

The host/runtime that powers Azure Functions
https://functions.azure.com
MIT License
1.94k stars 441 forks source link

Exponential backoff int64 overflow #4699

Open jcageman opened 5 years ago

jcageman commented 5 years ago

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!

fabiocav commented 5 years ago

Indeed. Curious, did you actually run into an exception with this code path? Do you have the stack for this? There are two main code paths that use this, host restarts and the file watcher recovery. Curious to understand which one caused the problem (though, both are exposed).