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

SaveBulkStateAsync() throws context deadline exceeded exception #1265

Closed
koumdev opened this issue Apr 4, 2024 · 3 comments
Closed

SaveBulkStateAsync() throws context deadline exceeded exception #1265

koumdev opened this issue Apr 4, 2024 · 3 comments

Comments

@koumdev
Copy link

koumdev commented Apr 4, 2024

Ask your question here

Hello,

I'm using Azure Cosmos DB state store and the SaveBulkStateAsync() to save bulk records, but an exception (context deadline exceeded) is thrown when the call takes more than 20 seconds(ish).

From cosmosdb.go code, it looks like there is a default timeout of 20 seconds.

All of the functions (Get, Set, Delete, ...) except BulkGet are using defaultTimeout to set the context timeout.

  • Is that the reason why my call fails?
  • Does that mean all the Azure Cosmos DB state store calls timeout after 20 seconds?
  • Is there any way to change this timeout?

Thank you!

@philliphoff
Copy link
Collaborator

@koumdev It looks to me like it's a hardcoded 20s timeout in the component itself. I'd file an issue in dapr/components-contrib and ask these questions. In any case, it's unlikely to be specific to the .NET SDK.

@koumdev
Copy link
Author

koumdev commented Apr 11, 2024

@philliphoff, sorry for posting in the wrong repo again. I've reposted the question here.

@philliphoff
Copy link
Collaborator

Closing this in favor of the components-contrib issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants