Skip to content

Do not panic on duplicate keys#159

Merged
joamaki merged 1 commit into
cilium:mainfrom
jrajahalme:index-add-deduplicated-key-set
May 21, 2026
Merged

Do not panic on duplicate keys#159
joamaki merged 1 commit into
cilium:mainfrom
jrajahalme:index-add-deduplicated-key-set

Conversation

@jrajahalme

@jrajahalme jrajahalme commented May 20, 2026

Copy link
Copy Markdown
Member

Callers may create index.KeySets that contain duplicate keys. Do not panic if this is the case.

The added test in the new part_index_test.go fails if applied without the change in part_index.go.

Callers may create index.KeySets that contain duplicate keys. Do not
panic if this is the case.

The added test in the new part_index_test.go fails if applied without the
change in part_index.go.

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
@jrajahalme jrajahalme requested a review from a team as a code owner May 20, 2026 15:14
@jrajahalme jrajahalme added the enhancement New feature or request label May 20, 2026
@jrajahalme jrajahalme requested review from derailed and joamaki and removed request for a team May 20, 2026 15:14
@jrajahalme

Copy link
Copy Markdown
Member Author

CI test passed, but looks like a PR from a fork has no access to setting PR comments?

@eufriction

Copy link
Copy Markdown

Original Cilium issue for reference: cilium/cilium#45758

@joamaki joamaki merged commit 0ec1404 into cilium:main May 21, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants