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

[BUG]Request fail with 400/1024 when container is re-created with same name

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

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

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

2026年5月7日 から。

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

評価

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

説明

Client Cosmos cosmos:v4-item

Repro steps:
- client is on gateway mode
- create container A, verify the collectionRid
- do some read/write/query operations using the container
- delete the container
- re-create the container with same name
- verify the collectionRid is different than the previous one
- do read/write/query operation, fail with com.azure.cosmos.CosmosException: {"innerErrorMessage":"{"Errors":["Collection rid provided by the user does not match the existing collection."]}, StatusCode: BadRequest"}

Root cause:
TBD, but could be related to the following context not being reset during retry:
request.forceNameCacheRefresh = true;
request.requestContext.resolvedCollectionRid = null;

Tests converge after fix:

  • need to make sure container recreate scenario works for direct mode
  • need to make sure container recreate scenarios works for gateway mode
  • need to make sure container recreate scenarios works for all operation types
主要言語
Java
スター
2.6k
フォーク
2.2k
平均マージ
1日 22時間
マージ済み PR(30日)
220

環境構築

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 を短くまとめたダイジェスト。