Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#49,097 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@xinlian12 ci sta già lavorando.

Dal 7/5/2026.

  • #49131 di @xinlian12 — chiusa senza merge

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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
Lingua principale
Java
Stelle
2.6k
Fork
2.2k
Merge medio
1g 22h
PR unite (30g)
225

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/azure-sdk-for-java

Tutte le issue di Azure/azure-sdk-for-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.