JingsongLi opened a new pull request, #10823:
URL: https://github.com/apache/paimon/pull/10823
### Purpose
Deleting a tag whose snapshot has expired currently also cleans up
underlying data and manifest files, which can cause unintended deletion. Make
single and bulk tag deletion remove only the tag metadata file, preserving the
existing APIs and callbacks. Leave unused manifest, index, data, and reassign
plan files to orphan file cleanup, subject to its reference checks and age
cutoff.
Update the documentation and regression tests for the deferred cleanup
behavior.
### Tests
104 tests passed with standard checks enabled (without `fast-build`),
covering single and bulk tag deletion, orphan file cleanup, index and reassign
plan retention, snapshot/tag expiration, and Iceberg callbacks.
```bash
mvn -B -ntp -pl paimon-core -am \
-DfailIfNoTests=false -DwildcardSuites=none \
'-Dtest=FileDeletionTest,ExpireSnapshotsTest,IndexFileExpireTableTest,TagManagerTest,TagAutoManagerTest,BatchReadTagCreatorTest,SuccessFileTagCallBackTest,LocalOrphanFilesCleanTest,DataEvolutionRowIdReassignerTest#testReassignPlanCleanup,IcebergCompatibilityTest#testCreateAndDeleteTags+testTagsWithLocalCacheOfAllFileTypes+testTagCallbackTakesNoActionIfIcebergMetadataDoesNotExist'
\
test
```
--
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]