yuqi1129 opened a new issue, #14282:
URL: https://github.com/apache/gravitino/issues/14282

   ### Describe the subtask
   
   `MetalakeMetaService.deleteMetalake` soft-deletes the roles and tags before 
it cleans `role_meta_securable_object` and `tag_relation_meta`. Both cleanup 
statements find their rows through a live role or tag (`deleted_at = 0`), so 
after a metalake drop those rows stay live and the legacy-data cleanup never 
collects them. This happens on both the cascade and the non-cascade path.
   
   The non-cascade path also never soft-deletes `policy_meta` and 
`policy_version_info`, so the policies of a dropped metalake stay live.
   
   Fix: clean the securable objects and tag relations before the roles and 
tags, and soft-delete policies and policy versions on the non-cascade path too.
   
   ### Parent issue
   
   https://github.com/apache/gravitino/issues/13303
   


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