[
https://issues.apache.org/jira/browse/HADOOP-13188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15336655#comment-15336655
]
Steve Loughran commented on HADOOP-13188:
-----------------------------------------
thanks, I 'll commit it over the weekend.
if you get S3a.toString() on your FS instance, you'll get the full io stats
printed out.Be interesting to see the changes.
I don't think you should be seeing any perf diff. There's a call to
exists(path), which is getFileStatus in a try/catch block. Same overhead,
simply without check for the path referring to a directory if it is there
> S3A file-create should throw error rather than overwrite directories
> --------------------------------------------------------------------
>
> Key: HADOOP-13188
> URL: https://issues.apache.org/jira/browse/HADOOP-13188
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/s3
> Affects Versions: 2.7.2
> Reporter: Raymie Stata
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: HADOOP-13188-branch-2-001.patch
>
>
> S3A.create(Path,FsPermission,boolean,int,short,long,Progressable) is not
> checking to see if it's being asked to overwrite a directory. It could
> easily do so, and should throw an error in this case.
> There is a test-case for this in AbstractFSContractTestBase, but it's being
> skipped because S3A is a blobstore. However, both the Azure and Swift file
> systems make this test, and the new S3 one should as well.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]