The default retry policy is too permissive #417
Labels
bug
Something isn't working
dotnet-sdk
Affects the C#/DotNet SDK
go-sdk
Affects the Go SDK
good first issue
Good for newcomers
hacktoberfest
java-sdk
Affects the Java/Kotlin SDK
js-sdk
Affects the JavaScript SDK
python-sdk
Affects the Python SDK
Checklist
Description
We bumped up the default retry (https://github.com/openfga/sdk-generator/blame/1cc4b1b2bc26739e031ae80c7c69da42d0bfb141/config/common/config.base.json#L87) from
5
to15
last yearThe default retry behaviour of 15 retries with exponential backoff is far too aggressive. This means the caller could be sat waiting many minutes for all the retries to complete.
Expectation
It's unexpected for the user for the SDK to be stuck hanging for a while as it retries - by default we should be retrying a few times and failing early.
A more sane default could be
3
retries before giving upReproduction
N/A
SDK Checklist
OpenFGA SDK version
Latest
OpenFGA version
N/A
SDK Configuration
N/A
Logs
No response
References
Sub-tickets:
The text was updated successfully, but these errors were encountered: