Skip to content

[IMPROVED] Deduplicate keys in KeyValue.Keys() and document ListKeys behavior#2029

Open
piotrpio wants to merge 1 commit intomainfrom
fix/kv-keys-dedup
Open

[IMPROVED] Deduplicate keys in KeyValue.Keys() and document ListKeys behavior#2029
piotrpio wants to merge 1 commit intomainfrom
fix/kv-keys-dedup

Conversation

@piotrpio
Copy link
Collaborator

Add deduplication to Keys() using slices.Sort + slices.Compact to handle
cases where the server returns duplicate keys during concurrent writes.
Add documentation notes to ListKeys and ListKeysFiltered warning about
possible duplicates on large buckets with frequent writes.

Signed-off-by: Piotr Piotrowski piotr@synadia.com

@piotrpio piotrpio requested a review from Jarema February 27, 2026 11:51
…behavior

Un-deprecate Keys() and add deduplication using slices.Sort + slices.Compact
to handle cases where the server returns duplicate keys during concurrent
writes. Add documentation notes to ListKeys and ListKeysFiltered warning
about possible duplicates on large buckets with frequent writes.

Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant