Steve Loughran created HADOOP-13950:
---------------------------------------

             Summary: S3A create(path, overwrite=true) need only check for path 
being a dir, not a file
                 Key: HADOOP-13950
                 URL: https://issues.apache.org/jira/browse/HADOOP-13950
             Project: Hadoop Common
          Issue Type: Sub-task
          Components: fs/s3
    Affects Versions: 2.7.3
            Reporter: Steve Loughran
            Priority: Minor


When you create a file with overwrite=true, you don't care that a path resolves 
to a file, only that there isn't a directory at the destination.

S3A can use this, bypass the {{GET path}} and only do a {{GET path + "/"}} and 
LIST path. That way: one HTTPS request saved, and no negative caching of the 
path to confuse followup checks.

That is: better performance and consistency



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-dev-h...@hadoop.apache.org

Reply via email to