SaveBulkStateAsync() throws context deadline exceeded exception
koumdev opened this issue · comments
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!
@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.
@philliphoff, sorry for posting in the wrong repo again. I've reposted the question here.
Closing this in favor of the components-contrib issue.