Azure / Azure/azure-sdk-for-java

Modify partition-level primary tracking to only markdown on success or non-transient error with hub region header

Open
#49,010 0 comments 0 reactions 0 assignees View on GitHub
Cosmos feature-request
Dominant language
Java
Stars
2.6k
Forks
2.2k
Avg merge
2d 8h
Merged PRs (30d)
178

Description

## Summary

Modify partition-level primary tracking orchestrated through reads to only markdown when reads return success or non-transient error code, with hub region processing header pinned for these reads.

## Details

- Update the partition-level primary tracking logic to restrict markdown triggers:
- Only markdown when the read returns a success status code
- Only markdown when the read returns a non-transient error code
- Pin the hub region processing header for these reads so that the tracking is scoped to hub region responses
- Transient errors should not trigger primary tracking markdown

## Motivation

Ensures partition-level primary tracking is only updated based on definitive responses (success or permanent failure), preventing incorrect tracking updates from transient errors. The hub region processing header pin ensures tracking accuracy in hub region caching scenarios.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.