-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[App Config] Throttling retry policy update - no retrying forever #16376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
HarshaNalluru
merged 15 commits into
Azure:main
from
HarshaNalluru:harshan/app-config/issue/16366
Jul 15, 2021
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
6066532
app-config throttlign retry policy fix - no retrying forever
HarshaNalluru 726bf80
typo
HarshaNalluru 37fdf20
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-js into…
HarshaNalluru 4cdb12c
update versions
HarshaNalluru 037f993
Add changelog
HarshaNalluru 2db9c69
Update sdk/appconfiguration/app-configuration/CHANGELOG.md
HarshaNalluru 2c65ba2
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-js into…
HarshaNalluru 2879263
Merge branch 'harshan/app-config/issue/16366' of https://github.com/H…
HarshaNalluru feefe53
Update sdk/appconfiguration/app-configuration/CHANGELOG.md
HarshaNalluru 763b696
Redeclare RetryOptions
HarshaNalluru 98be9a5
API Report
HarshaNalluru 3d4b51e
Merge branch 'harshan/app-config/issue/16366' of https://github.com/H…
HarshaNalluru 18c30c7
delay(maxRetryDelayInMs) for the case of (this.retryOptions.maxRetryD…
HarshaNalluru 8cbb6b7
address feedback
HarshaNalluru 99bbd7f
remove 90 seconds default
HarshaNalluru File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we set this to the default in the constructor default option value? Otherwise the delay can go unbounded.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine for maxRetries, will add that.
I don't want to define maxRetryDelayInMs since different services may have different values.
For example, with the observations from app-config, I have seen values anywhere between 20ms and 300000ms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the throttlign policy case, if the error from the service is with the delay, then we use it for delay and throw directly otherwise. I don't think there is a case of unboundedness.
maxRetryDelayInMs should only be provided by the user according to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds fair. Please update the ref doc for maxRetryDelayInMs to remove the mentioning of default value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated