Description
Currently, every attempted release of an S3 state object also checks if the "parent directory" is empty and then tries to delete it.
Not only is that unnecessary on S3, but it is prohibitively expensive and for example causes S3 to throttle calls by the JobManager on checkpoint cleanup.
The FileState must only attempt parent directory cleanup when operating against real file systems, not when operating against object stores.
Attachments
Issue Links
- is blocked by
-
FLINK-7265 FileSystems should describe their kind and consistency level
- Closed
- relates to
-
FLINK-7587 Flink doesn't delete empty checkpoint file's dir from s3
- Closed
- supercedes
-
FLINK-7587 Flink doesn't delete empty checkpoint file's dir from s3
- Closed