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

Container recreate retry policy Support for Cosmos DB Python SDK

Open bambriz opened this issue 1 year ago • 24 comments

Description

This PR adds a new retry policy for when a container is recreated. This works in tandem with the container cache, in which case this PR adds the functionality of refreshing the container properties cache when a container recreate happens. This fixes the issue from Issue 35294.

The retry works based on if there is a mismatch with the intended container RID with container RID from the service. If there is a RID mismatch then we refresh the container cache to match the one in the backend and retry the operation. This will result in the operation succeeding or failing normally with the correct container properties.

bambriz avatar Jun 11 '24 22:06 bambriz

/azp run python - cosmos - tests

bambriz avatar Jun 11 '24 22:06 bambriz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 11 '24 22:06 azure-pipelines[bot]

/azp run python - cosmos - tests

bambriz avatar Jun 12 '24 03:06 bambriz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 12 '24 03:06 azure-pipelines[bot]

/azp run python - cosmos - tests

bambriz avatar Jun 12 '24 22:06 bambriz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 12 '24 22:06 azure-pipelines[bot]

/azp run python - cosmos - tests

bambriz avatar Jun 13 '24 18:06 bambriz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 13 '24 18:06 azure-pipelines[bot]

/azp run python - cosmos - tests

bambriz avatar Jun 13 '24 19:06 bambriz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 13 '24 19:06 azure-pipelines[bot]

/azp run python - cosmos - tests

bambriz avatar Jun 14 '24 16:06 bambriz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 14 '24 16:06 azure-pipelines[bot]

/azp run python - cosmos - tests

bambriz avatar Jun 14 '24 19:06 bambriz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 14 '24 19:06 azure-pipelines[bot]

/azp run python - cosmos - tests

bambriz avatar Jun 29 '24 00:06 bambriz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 29 '24 00:06 azure-pipelines[bot]

/azp run python - cosmos - tests

bambriz avatar Jun 29 '24 03:06 bambriz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 29 '24 03:06 azure-pipelines[bot]

/azp run python - cosmos - tests

bambriz avatar Jun 29 '24 03:06 bambriz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 29 '24 03:06 azure-pipelines[bot]

/azp run python - cosmos - tests

bambriz avatar Jun 29 '24 05:06 bambriz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 29 '24 05:06 azure-pipelines[bot]

/azp run python - cosmos - tests

bambriz avatar Jul 01 '24 05:07 bambriz

Azure Pipelines successfully started running 1 pipeline(s).

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

/azp run python - cosmos - tests

bambriz avatar Jul 09 '24 20:07 bambriz

Azure Pipelines successfully started running 1 pipeline(s).

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

/azp run python - cosmos - tests

bambriz avatar Jul 09 '24 23:07 bambriz

Azure Pipelines successfully started running 1 pipeline(s).

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

/azp run python - cosmos - tests

bambriz avatar Jul 15 '24 19:07 bambriz

Azure Pipelines successfully started running 1 pipeline(s).

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