Skip to content

Fixed the timeout retry policy#3

Merged
kushagraThapar merged 1 commit into
tvaron3/readtimeoutfrom
readtimeout
Feb 6, 2025
Merged

Fixed the timeout retry policy#3
kushagraThapar merged 1 commit into
tvaron3/readtimeoutfrom
readtimeout

Conversation

@kushagraThapar

Copy link
Copy Markdown
Collaborator

Fixed the timeout retry policy

@github-actions github-actions Bot added the Cosmos label Feb 6, 2025
@kushagraThapar kushagraThapar merged commit e8bc02e into tvaron3/readtimeout Feb 6, 2025
tvaron3 added a commit that referenced this pull request May 30, 2026
…ation tests

- Mirror async drain-loop fix in sync routing_map_provider so /pkranges
  change-feed paginates correctly when the service returns multiple pages
  per refresh (sync path was previously susceptible to the same incomplete
  routing map seen in async).
- Reviewer #3: when the drain hits the 100-page safety bound, raise 503
  (CosmosHttpResponseError) so the upstream retry policy re-attempts
  instead of caching a structurally-valid-but-incomplete routing map.
- Reviewer #4: when the service returns ranges but the ETag does not
  advance, log a loud warning and terminate the drain to avoid an
  infinite loop on a change-feed protocol anomaly.
- Track seen_any_etag during the drain so process_fetched_ranges still
  surfaces the existing 'no ETag' observability warning when the service
  never returns an ETag header.
- Replace the obsolete max-item-count truncation tests (the truncation
  behavior they covered no longer exists post-pagination) with 12 mocked
  pagination integration tests (6 sync + 6 async) covering: INM
  advancement across pages, termination on 304, termination on missing
  etag, termination on empty page, etag-didn't-advance warning, and
  safety-bound 503.
- Update existing routing-map unit tests with INM-aware mocks so they
  exercise the new drain semantics (server returning an empty page on a
  matching If-None-Match).
- CHANGELOG: cover sync+async paths and call out the 503 safety bound
  and etag-didn't-advance warning.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant