LuciferYang opened a new pull request, #13436:
URL: https://github.com/apache/gravitino/pull/13436

   ### What changes were proposed in this pull request?
   
   `dropCatalogsUnderMetalake` now tracks whether it temporarily enabled a 
disabled metalake, and restores the disabled state (best effort) before 
rethrowing on failure, mirroring the enable's own best-effort semantics. A 
vanished metalake (`NoSuchMetalakeException`) still takes the benign 
already-gone path.
   
   ### Why are the changes needed?
   
   A force drop that failed during child cleanup left a user-disabled metalake 
enabled with its catalogs partially dropped, violating the disable the user 
requested.
   
   Fix: #13435
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Added 
`TestMetalakeManager.testFailedForceDropKeepsDisabledMetalakeDisabled`, which 
pins that a force drop failing mid-cleanup leaves the metalake disabled. It 
fails against the pre-fix code.
   


-- 
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]

Reply via email to