[FEATURE REQ]Immediately trigger cross-regional fail-over on 410/LeaseLost #39557
Labels
Client
This issue points to a problem in the data-plane of the library.
Cosmos
needs-team-attention
This issue needs attention from Azure service team or SDK team
Service Attention
This issue is responsible by Azure service team.
Is your feature request related to a problem? Please describe.
Today when a read region loses the read lease it returns 410/LeaseLost - the client will then retry locally for up-to 30 seconds (catch-all 410 retry like for 410/0 or connectivity related 410) .
Describe the solution you'd like
Instead the 4120/LeaseLost should be mapped immediately to a 503 to allow the cross-regional retry to happen as quickly as possible (it should also result in per partition mark-down when available) - retrying in the next preferred region like usual for reads is acceptable.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
n/a
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: