Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[FEATURE REQ] Port hub region caching per partition level from .NET SDK

オープン
#48,788 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@jeet1995 がすでに取り組んでいます。

2026年4月12日 から。

  • #48789 @jeet1995 による — マージされずにクローズ

評価

この issue はまだ評価されていません。

説明

Client Cosmos

Summary

Port the per-partition hub region caching feature from .NET SDK (PR Azure/azure-cosmos-dotnet-v3#5648) to the Java SDK.

Background

On single-master accounts encountering repeated 404/1002 (ReadSessionNotAvailable) errors, the SDK should discover the hub region via a 403/3 (WriteForbidden) discovery chain and cache the result per partition. Subsequent requests to the same partition route directly to the cached hub, eliminating redundant discovery round-trips.

Key Behavior

  • After 2 consecutive 404/1002 on a single-master account, set \x-ms-cosmos-hub-region-processing-only\ header
  • Non-hub regions return 403/3 (WriteForbidden) — SDK retries to next region (discovery chain)
  • Hub region responds with 200 OK — SDK caches hub URI for that partition
  • Future requests route directly to cached hub (warm path)
  • Works for both PPAF and non-PPAF accounts
  • Must be gated by a feature flag / environment variable (per Debdatta's guidance)

.NET Reference

Java SDK Files Likely Affected

  • \ClientRetryPolicy.java\
  • \GlobalPartitionEndpointManager.java\ / related partition failover classes
  • \RxGatewayStoreModel.java\
  • \Configs.java\ (feature flag)

Acceptance Criteria

  • Hub region discovery via 403/3 chain after 2x 404/1002 on single-master
  • Per-partition hub region caching (warm path skips discovery)
  • Feature flag gate (environment variable, disabled by default initially)
  • Works for both PPAF and non-PPAF accounts
  • Unit tests + integration tests
主要言語
Java
スター
2.6k
フォーク
2.2k
平均マージ
2日 4時間
マージ済み PR(30日)
231

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Azure/azure-sdk-for-java のほかの issue

Azure/azure-sdk-for-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。