[BUG]ChangeFeedProcessor on DedicatedGateway #35146
Labels
Client
This issue points to a problem in the data-plane of the library.
cosmos:v4-item
Indicates this feature will be shipped as part of V4 release train
Cosmos
cosmos-java-ecosystem-se-planning
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-triage
Workflow: This issue needs the team to triage.
Issue:
When using ChangeFeedProcessor with Dedicated gateway, LeaseLostException is being constantly observed.
Reason:
For Dedicated gateway, the default MaxIntegratedCacheStaleness is 5 minutes, and for cached query, single item update will not evict the cached query results. During load balancing time, staled/cached lease snapshot will be returned and due to the staled timestamp, leases which are actively being processed may mistakenly categorized as expired leases, and the taking ownership process may fail due to etag mistach.
Proposed solution:
using MaxIntegratedCacheStaleness=0 or BypassIntegratedCache(Azure/azure-cosmos-dotnet-v3#3836)
The text was updated successfully, but these errors were encountered: