[
https://issues.apache.org/jira/browse/HADOOP-16879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Loughran resolved HADOOP-16879.
-------------------------------------
Resolution: Duplicate
> s3a mkdirs() to not check dest for a dir marker
> -----------------------------------------------
>
> Key: HADOOP-16879
> URL: https://issues.apache.org/jira/browse/HADOOP-16879
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/s3
> Affects Versions: 3.2.1
> Reporter: Steve Loughran
> Priority: Major
>
> S3A innerMkdirs() calls getFileStatus() to probe dest path for being a file
> or dir, then goes to reject/no-op.
> The HEAD path + / in that code may add a 404 to the S3 load balancers, so
> subsequent probes for the path fail.
> Proposed: only look for file then LIST underneath
> if no entry found: probe for parent being a dir (LIST; HEAD + /), if true
> create the marker entry. If not, start the walk (or should we then check?)
> This increases the cost of mkdir on an existing empty dir marker; reduces it
> on a non-empty dir. Creates dir markers above dir markers to avoid those
> cached 404s.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]