Long stalls when using extended sessions with new partition leasing mechanism
- Dominant language
- C#
- Stars
- 1.7k
- Forks
- 335
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 6
Description
The new partition lease mechanism of the AzureStorage provider waits for sessions to complete before releasing the ownership lease.
If extended sessions are enabled, this can cause unexpected long delays during which the partition is effectively stalled.
As a solution to this problem, I think we should cancel the extended sessions when partitions are shutting down.
Also, it may make sense to address this a bit more generally and cancellation tokens to `TaskActivityWorkItem` and `TaskOrchestrationWorkItem`. This will allow the backend to communicate to the front end when the partition is shutting down and that it would be better to cancel this work item (if it has not already started). For example, this would allow large entity operation batches to terminate sooner.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.