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
We are continuously addressing and improving the SDK, if possible, make sure the problem persist in the latest SDK version.
Describe the bug
When FeedResponse.ReadNextAsync(token) is invoked for a long-running query that returns approximately 500 items, a StackOverflowException occurs if the cancellation token is triggered during the execution. The issue seems to be related to the handling of cancellation during lengthy operations.
To Reproduce
Execute a query that retrieves around 500 items, ensuring that the query takes a considerable amount of time to complete.
While FeedResponse.ReadNextAsync(token) is processing the query, trigger the cancellation token.
Observe the behavior of the application.
Expected behavior
The method ReadNextAsync should handle the cancellation request without causing a StackOverflowException. It should properly cancel the ongoing task and throw a TaskCanceledException or complete in a controlled manner. Actual behavior
Triggering the cancellation token during the execution of a long-running ReadNextAsync call results in a StackOverflowException. This suggests that the cancellation process might be causing recursive calls or excessive stack usage, particularly during prolonged operations.
Environment summary
SDK Version: 3.42.0
OS Version (e.g. Windows, Linux, MacOSX): Windows
Additional context
Link to CallDump (MS FTE login required): Azure Watson Dump
The text was updated successfully, but these errors were encountered:
Describe the bug
When FeedResponse.ReadNextAsync(token) is invoked for a long-running query that returns approximately 500 items, a StackOverflowException occurs if the cancellation token is triggered during the execution. The issue seems to be related to the handling of cancellation during lengthy operations.
To Reproduce
Execute a query that retrieves around 500 items, ensuring that the query takes a considerable amount of time to complete.
While FeedResponse.ReadNextAsync(token) is processing the query, trigger the cancellation token.
Observe the behavior of the application.
Expected behavior
The method ReadNextAsync should handle the cancellation request without causing a StackOverflowException. It should properly cancel the ongoing task and throw a TaskCanceledException or complete in a controlled manner.
Actual behavior
Triggering the cancellation token during the execution of a long-running ReadNextAsync call results in a StackOverflowException. This suggests that the cancellation process might be causing recursive calls or excessive stack usage, particularly during prolonged operations.
Environment summary
SDK Version: 3.42.0
OS Version (e.g. Windows, Linux, MacOSX): Windows
Additional context
Link to CallDump (MS FTE login required): Azure Watson Dump
The text was updated successfully, but these errors were encountered: