[#8379] fix(core): Handle duplicate PathContext keys by merging contexts with Sets#8414
Merged
jerryshao merged 2 commits intoapache:mainfrom Sep 4, 2025
Merged
[#8379] fix(core): Handle duplicate PathContext keys by merging contexts with Sets#8414jerryshao merged 2 commits intoapache:mainfrom
jerryshao merged 2 commits intoapache:mainfrom
Conversation
… contexts with Sets
FANNG1
approved these changes
Sep 3, 2025
github-actions bot
pushed a commit
that referenced
this pull request
Sep 4, 2025
…xts with Sets (#8414) ### What changes were proposed in this pull request? This PR introduces a merge function to handle duplicate `PathContext` entries when building `CredentialContext` maps. ### Why are the changes needed? Without this fix, duplicate `PathContext` entries with the same `credentialType` would cause an `IllegalStateException`. Fix: #8379 ### Does this PR introduce _any_ user-facing change? No user-facing changes. ### How was this patch tested? 1. Added unit tests with duplicate `PathContext` entries. 2. Executed existing unit tests Co-authored-by: Jerry Shao <jerryshao@datastrato.com>
diqiu50
pushed a commit
to diqiu50/gravitino
that referenced
this pull request
Sep 15, 2025
… contexts with Sets (apache#8414) ### What changes were proposed in this pull request? This PR introduces a merge function to handle duplicate `PathContext` entries when building `CredentialContext` maps. ### Why are the changes needed? Without this fix, duplicate `PathContext` entries with the same `credentialType` would cause an `IllegalStateException`. Fix: apache#8379 ### Does this PR introduce _any_ user-facing change? No user-facing changes. ### How was this patch tested? 1. Added unit tests with duplicate `PathContext` entries. 2. Executed existing unit tests Co-authored-by: Jerry Shao <jerryshao@datastrato.com>
bharos
pushed a commit
to bharos/gravitino
that referenced
this pull request
Oct 3, 2025
… contexts with Sets (apache#8414) ### What changes were proposed in this pull request? This PR introduces a merge function to handle duplicate `PathContext` entries when building `CredentialContext` maps. ### Why are the changes needed? Without this fix, duplicate `PathContext` entries with the same `credentialType` would cause an `IllegalStateException`. Fix: apache#8379 ### Does this PR introduce _any_ user-facing change? No user-facing changes. ### How was this patch tested? 1. Added unit tests with duplicate `PathContext` entries. 2. Executed existing unit tests Co-authored-by: Jerry Shao <jerryshao@datastrato.com>
bharos
pushed a commit
to bharos/gravitino
that referenced
this pull request
Oct 7, 2025
… contexts with Sets (apache#8414) ### What changes were proposed in this pull request? This PR introduces a merge function to handle duplicate `PathContext` entries when building `CredentialContext` maps. ### Why are the changes needed? Without this fix, duplicate `PathContext` entries with the same `credentialType` would cause an `IllegalStateException`. Fix: apache#8379 ### Does this PR introduce _any_ user-facing change? No user-facing changes. ### How was this patch tested? 1. Added unit tests with duplicate `PathContext` entries. 2. Executed existing unit tests Co-authored-by: Jerry Shao <jerryshao@datastrato.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.
What changes were proposed in this pull request?
This PR introduces a merge function to handle duplicate
PathContextentries when buildingCredentialContextmaps.Why are the changes needed?
Without this fix, duplicate
PathContextentries with the samecredentialTypewould cause anIllegalStateException.Fix: #8379
Does this PR introduce any user-facing change?
No user-facing changes.
How was this patch tested?
PathContextentries.