XiaoHongbo-Hope opened a new pull request, #7920:
URL: https://github.com/apache/paimon/pull/7920

   …ransient empty result
   
   When listFileDirs encounters a transient empty response (network jitter, 
throttling) for a partition directory, the partition path is mistakenly passed 
to pathProcessor as if it were a bucket-level path. If the second listing 
succeeds, bucket sub-directories are collected as orphan file candidates. Since 
bucket directory names never appear in snapshot manifests, they pass the orphan 
diff and cleanFile recursively deletes the entire bucket directory including 
valid data files.
   
   Fix: filter out directory entries in pathProcessor (Local + Flink) so only 
actual files become orphan candidates. Additionally, add a defensive guard in 
cleanFile to refuse recursive deletion of non-empty directories.
   
   ### Purpose
   
   ### Tests
   


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