[QUERY] #43677
Labels
Client
This issue points to a problem in the data-plane of the library.
Cosmos
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Query/Question
Dear team,
We have a multiwrite cosmos setup across 3 regions. One of service does only read operations on the cosmos DB and connects via Direct Mode. During a recent outage the South central region was not reachable for long time and our expectation was that sdk should take care of failing over to secondary region. In our setup we do provide more than one preferredLocations and also enableEndpointDiscovery is set to true. However the failover did not happen and we continued to see request failures, following cosmos diagnostis appeared in our logs
Browsing though the sdk code I came across this class
azure-sdk-for-java/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/ClientRetryPolicy.java
Line 131 in 0348696
Can you please help that how should we setup our cosmos sdk that gateway read timeout failures are handled by failing over to alternate preferred location, I see that there is different handling incase gateway endpoint is unavailable but we did not see this error.
Why is this not a Bug or a feature Request?
It is not clear yet the code is behaving as expected or needs a code fix.
Setup (please complete the following information if applicable):
The text was updated successfully, but these errors were encountered: