Timeout for LINQ queries
See original GitHub issueDescribe the bug
Request timeout set on CosmosClientBuilder
using WithRequestTimeout
is not respected by Container.GetItemLinqQueryable
. When I run a heavy query, it does not return nor throw after the request timeout of 1 second passes.
I am aware that this request timeout is interpreted as a network request timeout, not an operation timeout. However, in this case, the client does not receive anything from the server. I put a breakpoint to the loop in CosmosLinqQuery.GetEnumerator()
and I can see no results are returned before the timeout passes.
EDIT: What’s also troubling is that it keeps hanging indefinitely on localFeedIterator.ReadNextAsync
. I left it running for a couple of minutes and it didn’t do anything. There surely must be some timeout enforced downstream, right?
To Reproduce Execute a heavy LINQ query and set a request timeout of 1 second.
Expected behavior The request timeout is respected.
Actual behavior The query keeps running even after the timeout period passes.
Environment summary SDK Version: 3.15.0 OS Version (e.g. Windows, Linux, MacOSX): Windows 10
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (6 by maintainers)
Top GitHub Comments
@j82w Done.
Issue does not seems to reproduce in the latest SDK verison.