azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

[Cosmos] Resiliency and Documentation Improvements

Open simorenoh opened this issue 1 year ago • 27 comments

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.

simorenoh avatar Jul 18 '24 01:07 simorenoh

/azp run python - cosmos - tests

simorenoh avatar Jul 18 '24 01:07 simorenoh

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jul 18 '24 01:07 azure-pipelines[bot]

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-cosmos

azure-sdk avatar Jul 18 '24 02:07 azure-sdk

/azp run python - cosmos - tests

simorenoh avatar Jul 18 '24 18:07 simorenoh

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jul 18 '24 18:07 azure-pipelines[bot]

/azp run python - cosmos - tests

simorenoh avatar Jul 24 '24 20:07 simorenoh

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jul 24 '24 20:07 azure-pipelines[bot]

/azp run python - cosmos - tests

simorenoh avatar Jul 24 '24 22:07 simorenoh

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jul 24 '24 22:07 azure-pipelines[bot]

/azp run python - cosmos - tests

simorenoh avatar Jul 26 '24 16:07 simorenoh

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jul 26 '24 16:07 azure-pipelines[bot]

/azp run python - cosmos - tests

simorenoh avatar Jul 26 '24 18:07 simorenoh

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jul 26 '24 18:07 azure-pipelines[bot]

/azp run python - cosmos - tests

simorenoh avatar Jul 26 '24 20:07 simorenoh

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jul 26 '24 20:07 azure-pipelines[bot]

/azp run python - cosmos - tests

simorenoh avatar Jul 26 '24 20:07 simorenoh

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jul 26 '24 20:07 azure-pipelines[bot]

/azp run python - cosmos - tests

simorenoh avatar Jul 26 '24 22:07 simorenoh

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jul 26 '24 22:07 azure-pipelines[bot]

/azp run python - cosmos - tests

simorenoh avatar Jul 27 '24 16:07 simorenoh

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jul 27 '24 16:07 azure-pipelines[bot]

/azp run python - cosmos - tests

simorenoh avatar Jul 29 '24 21:07 simorenoh

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jul 29 '24 21:07 azure-pipelines[bot]

/azp run python - cosmos - tests

simorenoh avatar Aug 06 '24 17:08 simorenoh

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Aug 06 '24 17:08 azure-pipelines[bot]

/azp run python - cosmos - tests

simorenoh avatar Aug 06 '24 21:08 simorenoh

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Aug 06 '24 21:08 azure-pipelines[bot]

/azp run python - cosmos - tests

simorenoh avatar Sep 29 '24 17:09 simorenoh

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Sep 29 '24 17:09 azure-pipelines[bot]

/azp run python - cosmos - tests

simorenoh avatar Sep 29 '24 22:09 simorenoh