You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
It looks like all the bulk calls except BulkGet are actually processed as single requests, so how come I am running into this timeout?
I'm using Dapr version 1.13.0.
Thank you!
The text was updated successfully, but these errors were encountered:
Yes that would be why. It would need to be implemented as a new feature to make the timeout configurable.
The DotNet SDK making a single SaveStateRequest with multiple state items. The Dapr runtime notices whether this contains 1 or multiple items. If one item it calls the regular SaveState method, but if multiple - it calls the Multi method which is for batches.
Saving that batch times out of course.
FYI, CosmosDB has a limit of 100 operations per transactional batch - so you will not be able to save more than 100 items in a single SaveState operation.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions.
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
, ...) exceptBulkGet
are usingdefaultTimeout
to set the context timeout.BulkGet
are actually processed as single requests, so how come I am running into this timeout?I'm using Dapr version
1.13.0
.Thank you!
The text was updated successfully, but these errors were encountered: