- Notifications
You must be signed in to change notification settings - Fork4
Startup Retry & Configurable Startup Time-out & Error handling#166
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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.
Copilot reviewed 6 out of 8 changed files in this pull request and generated no comments.
Files not reviewed (2)
- src/ConfigurationClientWrapper.ts: Evaluated as low risk
- src/load.ts: Evaluated as low risk
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.
Copilot reviewed 6 out of 8 changed files in this pull request and generated no comments.
Files not reviewed (2)
- src/ConfigurationClientWrapper.ts: Evaluated as low risk
- src/load.ts: Evaluated as low risk
Comments suppressed due to low confidence (1)
src/failover.ts:35
- The comment should be 'random value between [-1, 1) * JITTER_RATIO * calculatedBackoffDuration' for consistency.
// jitter: random value between [-1, 1) * jitterRatio * calculatedBackoffMszhenlan commentedFeb 17, 2025
Is there a reason the retry can be disabled? |
zhiyuanliang-ms commentedFeb 18, 2025
If people want to throw immediatly when initial load fails, they can disable it. Setting a very short timeout is not feasible for this case. The |
zhenlan commentedFeb 18, 2025
Anyone asked for it? What's the scenario for it? |
zhiyuanliang-ms commentedFeb 18, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@zhenlan No one asks for it. I personally want to disable the retry so that I can know whether there is something wrong immediately. Anyway, I am ok with removing the |
zhenlan commentedFeb 18, 2025
If the connection string is malformed, I hope it will throw so we can fail immediately. Otherwise, you can't really tell what's wrong. Set a shorter timeout if you don't want to wait for too long.
Configuration is in critical code path. Most applications can't start without configuration loaded properly. Transient errors can happen for any cloud solutions. We rely on the client retry (and failover etc.) to deliver customers high availability. Please don't design a "feature" so customers can shoot their own feet. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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.
Copilot reviewed 6 out of 16 changed files in this pull request and generated 2 comments.
Files not reviewed (10)
- src/ConfigurationClientWrapper.ts: Evaluated as low risk
- src/load.ts: Evaluated as low risk
- test/failover.test.ts: Evaluated as low risk
- src/keyvault/AzureKeyVaultKeyValueAdapter.ts: Evaluated as low risk
- src/AzureAppConfigurationOptions.ts: Evaluated as low risk
- src/refresh/RefreshTimer.ts: Evaluated as low risk
- test/keyvault.test.ts: Evaluated as low risk
- src/ConfigurationClientManager.ts: Evaluated as low risk
- test/requestTracing.test.ts: Evaluated as low risk
- test/clientOptions.test.ts: Evaluated as low risk
Comments suppressed due to low confidence (1)
src/AzureAppConfigurationImpl.ts:249
- [nitpick] The error message 'Load operation timed out.' is unclear. Consider making it more descriptive, such as 'Loading configuration settings timed out.'
reject(new Error("Load operation timed out."));Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
zhiyuanliang-ms commentedApr 27, 2025
Will send out another pr to make all error messages const in a seperated file. |
Uh oh!
There was an error while loading.Please reload this page.
5c1f4a3 intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Why this PR?
The retry/backoff behavior is the same as .NET provider.
Retriable error in .NET provider:ref
reference:#488
Usage
By default the startup timeout will be 100 seconds.
The pseudo code of the whole startup retry + failover logic: