[AutoPR armconsumption] Lots API Description Update#5
Closed
azure-sdk wants to merge 1 commit into
Closed
Conversation
Merge 9480276363465408fd18ab70a21486ecf90e8660 into b52f90085693d0ec65f751e30c65c3a878c340ea
25 tasks
azure-sdk-automation Bot
pushed a commit
that referenced
this pull request
May 14, 2026
* add container cache and pk range cache * deadlock fix * refresh with replaceContainer too, validate refreshes * fix err handling * fmt * fix v2 hashing logic * internal * epk routing for HPK, dual-indexing container cache * go fmt * make rid based, change undefined pk behavior * Update cosmos_container_properties_cache.go * rename tests * Address PR review comments: fix deadlock, test names, EPK comparison - Fix lock-order inversion in containerPropertiesCache: extract updateRIDIndex() helper, ensure c.mu is never acquired while holding entry.mu (fixes #3 and #6) - Rename misleading test names to match actual behavior (#4 and #5) - Use epk.CompareEPK in isCompleteSetOfRanges for length-aware HPK boundary comparison (#1) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fixes from reviews * more fixes from copilot review * add test to verify cache is always used * Update cosmos_container.go * directly add cache to unit tests * invalidate pk range cache on container recreate * Update cosmos_container_properties_cache.go * add full refresh tests * 410 tests * fix: resolve pkDef inside retry loop and add nil guard for container cache Move PartitionKeyDefinition resolution inside the 410 retry loop so that after a cache invalidation (container deleted and recreated with a different partition key schema), the new pkDef is picked up — not just the new partition key ranges. Add nil guard in containerPropertiesCache.refreshEntry() to return an error instead of caching nil properties, which would cause a nil pointer panic in callers that dereference ContainerProperties. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * share caches among clients to same endpoint * additional tests * fix race conditions * add normalization * Update CHANGELOG.md --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Create to sync Azure/azure-rest-api-specs#18611