shuwenwei opened a new pull request, #17880: URL: https://github.com/apache/iotdb/pull/17880
## Summary This PR fixes two region migration cleanup issues: - Allow snapshot loading to continue when an empty snapshot does not contain seq or unseq data directories. The loader still reports a missing snapshot root as an error, but treats an existing snapshot with no data files as an empty region snapshot. - Avoid unnecessary TableDiskUsageIndex cleanup for tree-model regions, and complete remove operations immediately when no table disk usage writer exists. This prevents delete-region cleanup from waiting until timeout in empty or already-removed writer cases. ## Root Cause Empty regions may not create seq/unseq data directories before migration, but the snapshot loader previously required at least one of those directories to exist. TableDiskUsageIndex removal also assumed a writer existed once a remove operation was queued, so a missing writer could leave the remove future incomplete. ## Validation Not run, per local instruction to avoid proactive compile/build or formatting checks. -- 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]
