Skip to content

[#10269] fix(core): prevent fileset privilege removal on failed drop - #12582

Open
s4ravanan wants to merge 6 commits into
apache:mainfrom
s4ravanan:prevent-Fileset-Privilege
Open

[#10269] fix(core): prevent fileset privilege removal on failed drop#12582
s4ravanan wants to merge 6 commits into
apache:mainfrom
s4ravanan:prevent-Fileset-Privilege

Conversation

@s4ravanan

Copy link
Copy Markdown

[#10269] fix(core): prevent fileset privilege removal on failed drop

What changes were proposed in this pull request?

Updated FilesetHookDispatcher.dropFileset to remove authorization privileges only when the delegated fileset drop succeeds.

Added a regression test verifying that privileges are not removed when the delegate returns false.

Why are the changes needed?

When dropFileset returned false, authorization privileges were still removed. This could leave authorization state inconsistent with metadata state when the fileset was not deleted.

Fix: #10269

Does this PR introduce any user-facing change?

No. This is an internal authorization consistency fix and does not change any public APIs or configuration properties.

How was this patch tested?

The following focused tests passed:

./gradlew :core:test --tests org.apache.gravitino.hook.TestFilesetHookDispatcher -PskipITs

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.

[Improvement] Prevent fileset privilege removal when drop operation returns false

1 participant