Skip to content

Align Cosmos retry documentation - #5192

Open
Simon Moreno (simorenoh) wants to merge 1 commit into
mainfrom
simorenoh-audit-cosmos-retries
Open

Align Cosmos retry documentation#5192
Simon Moreno (simorenoh) wants to merge 1 commit into
mainfrom
simorenoh-audit-cosmos-retries

Conversation

@simorenoh

Copy link
Copy Markdown
Member

Align the retry guide and classifier comments with the Rust driver's implemented behavior.

Correct the documented retry behavior and classifier comments to match the Rust driver implementation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 17dcaadb-e402-4d3c-afb9-2d0d53c3a0e8
Copilot AI balanced review requested due to automatic review settings August 31, 2026 17:57
@simorenoh
Simon Moreno (simorenoh) requested a review from a team as a code owner August 31, 2026 17:57
@github-actions github-actions Bot added the Cosmos The azure_cosmos crate label Aug 31, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
3 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Aligns Cosmos retry documentation and classifier comments with driver behavior.

Changes:

  • Updates retry handling details and budgets.
  • Clarifies failover, topology, throttling, and endpoint marking behavior.
  • Removes outdated cross-SDK comparisons.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
retry_evaluation.rs Updates retry classifier documentation.
ErrorCodesAndRetries.md Revises the authoritative retry guide.

Comment on lines +256 to +257
| Single-write | ✅ PPCB-managed| ❌ Not PPCB-managed (PPAF handles writes)|
| Multi-write | ✅ PPCB-managed| ✅ PPCB-managed |
Comment on lines +13 to +14
//! - 503, 429/3092, non-topology 410 → FailoverRetry + mark unavailable
//! - Other 5xx → FailoverRetry + mark unavailable when the operation allows it
# Cosmos DB Rust Driver — Retry Mechanisms and Error Code Handling

This document describes the target retry behavior for the Azure Cosmos DB Rust driver (`azure_data_cosmos_driver`). It serves as the authoritative specification for how the driver handles errors, retries, and cross-region failover.
This document describes the implemented retry behavior for the Azure Cosmos DB Rust driver (`azure_data_cosmos_driver`). It serves as the authoritative specification for how the driver handles errors, retries, and cross-region failover.
Comment on lines +128 to +131
| Context | Action | Budget |
| ------------------------ | ------------------------------- | ------------------- |
| Partition topology | Dataflow routing-map refresh | Dataflow retry limit|
| Other 410 response | Cross-region failover retry | 3 failover attempts |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Cosmos The azure_cosmos crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants