roryqi opened a new pull request, #14951: URL: https://github.com/apache/gravitino/pull/14951
### What changes were proposed in this pull request? Propagate bulk and per-file deletion failures to async cleanup jobs, preserve the deletion cause in `last_error`, and wait for submitted batches before closing FileIO. Continue tolerating missing files and preserve parent metadata for retries. ### Why are the changes needed? `CatalogUtil.deleteFiles` suppresses deletion errors, causing async purge jobs to report `SUCCEEDED` while files remain on storage. Fixes #14333 ### Does this PR introduce _any_ user-facing change? Async purge now retries failed deletions and marks the job `FAILED` when the configured attempt limit is reached. Deletion errors remain visible in `last_error`. ### How was this patch tested? Added regression coverage for deletion failures, missing files, concurrent batches, retry exhaustion, and recovery. Confirmed two regression tests fail against the original implementation. - 723 module unit tests passed. - 51 cleanup tests passed across H2, MySQL, and PostgreSQL. - Spotless formatting and git diff checks passed. -- 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]
