Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In flight http request during failover not moving to other available region #352

Open
simplynaveen20 opened this issue Aug 27, 2020 · 0 comments
Assignees
Labels

Comments

@simplynaveen20
Copy link
Member

Describe the bug
During network io exception we do the region failover to other available region.
All the subsequent requests goes to other region.
However current request keep retrying over the same region for 120 times before floating error to user if not succeeded.

To Reproduce
Have two read regions. Induce the IO exception in one region, and you will see that flight request keep retrying in same region

Expected behavior
In flight request should move to other region once it mark the current region unavailable temporally

Actual behavior
In flight request keep retrying in same region after marking it unavailble

Environment summary
SDK Version: V2/V3/V4

Additional context
This problem probably exist in .NET cosmosdb sdk too.
Below is the relevant code where it keep retrying in same region.
Setting retryReguestOnPreferredRegion false
Which is getting use here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants