[Cosmos] Resiliency and Documentation Improvements
This PR improves and fixes some functionality that was missing in the SDK. Namely, this PR includes:
- New logic to retry ServiceRequestErrors up to three times before failing the request, ensuring that requests that were not reaching the service can attempt to run more than once.
- Bugfix on a client hang that would happen when switching write regions in an account (running into 403/3 write forbidden error). SDK no longer hangs attempting to resolve the locational endpoint and now properly routes requests.
- Adding retry mechanisms for 403/1008 database account not found errors.
- Small enhancements to our session retry logic and global endpoint manager refreshes, namely updating the locking logic to the same as async (slightly faster in deciding whether lock is needed) and adding locational routing to 404/1002 retries.
- Documentation updates on our client configurations, becoming more specific on what each setting does.
- Fixes bug introduced in PR 31096 which removed 503 retries from the SDK.
/azp run python - cosmos - tests
Azure Pipelines successfully started running 1 pipeline(s).
API change check
APIView has identified API level changes in this PR and created following API reviews.
/azp run python - cosmos - tests
Azure Pipelines successfully started running 1 pipeline(s).
/azp run python - cosmos - tests
Azure Pipelines successfully started running 1 pipeline(s).
/azp run python - cosmos - tests
Azure Pipelines successfully started running 1 pipeline(s).
/azp run python - cosmos - tests
Azure Pipelines successfully started running 1 pipeline(s).
/azp run python - cosmos - tests
Azure Pipelines successfully started running 1 pipeline(s).
/azp run python - cosmos - tests
Azure Pipelines successfully started running 1 pipeline(s).
/azp run python - cosmos - tests
Azure Pipelines successfully started running 1 pipeline(s).
/azp run python - cosmos - tests
Azure Pipelines successfully started running 1 pipeline(s).
/azp run python - cosmos - tests
Azure Pipelines successfully started running 1 pipeline(s).
/azp run python - cosmos - tests
Azure Pipelines successfully started running 1 pipeline(s).
/azp run python - cosmos - tests
Azure Pipelines successfully started running 1 pipeline(s).
/azp run python - cosmos - tests
Azure Pipelines successfully started running 1 pipeline(s).
/azp run python - cosmos - tests
Azure Pipelines successfully started running 1 pipeline(s).
/azp run python - cosmos - tests