s4ravanan opened a new pull request, #12582: URL: https://github.com/apache/gravitino/pull/12582
[#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: ```text ./gradlew :core:test --tests org.apache.gravitino.hook.TestFilesetHookDispatcher -PskipITs -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
