Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#49,097 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@xinlian12 đang làm issue này rồi.

Từ ngày 7/5/2026.

  • #49131 của @xinlian12 — đã đóng, không merge

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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
Ngôn ngữ chính
Java
Star
2.6k
Fork
2.2k
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
213

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/azure-sdk-for-java

Tất cả issue của Azure/azure-sdk-for-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.