mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-20 13:30:46 +02:00
The isDirectoryMarker check used fail-closed behavior: any transient error from GetEntryAttributes would permanently cache the folder as a directory marker, blocking cleanup forever. Change to fail-open: on transient errors, allow deletion to proceed and don't cache the result so it can be retried on the next cycle. This is safe because directory markers are intentional objects that users can recreate, while blocked cleanup causes silent data leaks. Also increase the Spark test cleanup timeout from 35s to 60s to accommodate cascading multi-level directory cleanup with the additional store lookups.