[
https://issues.apache.org/jira/browse/HADOOP-13222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15529053#comment-15529053
]
Steve Loughran commented on HADOOP-13222:
-----------------------------------------
This is slightly more serious than you'd think: it means if you create a tree
of empty directories, parent directories are there, so {{ls parent}}/ won't
find child dirs.
There's already a recurse up the tree, so as the walk goes on, dirs to delete
can be added as soon as an empty parent dir is found
Note that once a file is created, the empty dir delete operation kicks in, so
there is no delay.
> s3a.mkdirs() to delete empty fake parent directories
> ----------------------------------------------------
>
> Key: HADOOP-13222
> URL: https://issues.apache.org/jira/browse/HADOOP-13222
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/s3
> Affects Versions: 2.7.2
> Reporter: Steve Loughran
> Priority: Minor
>
> {{S3AFileSystem.mkdirs()}} has a TODO comment: what do do about fake parent
> directories.
> The answer is: as with files, they should be deleted. This can be done
> asynchronously
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]