Skip to content
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

SDK gets stuck if failed on initialization #2990

Closed
j82w opened this issue Jan 20, 2022 · 0 comments · Fixed by #3027
Closed

SDK gets stuck if failed on initialization #2990

j82w opened this issue Jan 20, 2022 · 0 comments · Fixed by #3027
Assignees
Labels
bug Something isn't working Internal team blocked Issue blocking internal teams
Milestone

Comments

@j82w
Copy link
Contributor

j82w commented Jan 20, 2022

On the first request the SDK creates this initialization task. If that initial task fails because of a networking error or customer not following the proper key rotation the task will always throw an exception. The same task is then awaited on for all future requests.

Solution:
The initialization task should be recreated if it failed so the SDK will actually retry on future request instead of returning the original exception from the first task.

//Internal team queries to show the issue
ComputeDebug
| where TIMESTAMP >= ago(1d)
| where Message contains "Unauthorized (401)"
| parse Message with * "Argument0=" acc "CosmosException" * "ActivityId: " act "Reason" *
| summarize min(TIMESTAMP), max(TIMESTAMP) by acc, act
| where max_TIMESTAMP - min_TIMESTAMP > timespan(1h)
| summarize count() by acc

ComputeDebug
| where TIMESTAMP >= ago(1d)
| where ActivityId =="0c7c1a30-26b4-4c88-80ca-c47f43ca0243" or Message contains "0c7c1a30-26b4-4c88-80ca-c47f43ca0243"

@j82w j82w added bug Something isn't working Internal team blocked Issue blocking internal teams labels Jan 20, 2022
@j82w j82w added this to the Triage milestone Jan 20, 2022
@kirankumarkolli kirankumarkolli modified the milestones: Triage, Feb 2022 Feb 8, 2022
@j82w j82w closed this as completed Feb 14, 2022
@j82w j82w moved this to Done in Azure Cosmos SDKs Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Internal team blocked Issue blocking internal teams
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants