[ 
https://issues.apache.org/jira/browse/HADOOP-17548?focusedWorklogId=559900&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-559900
 ]

ASF GitHub Bot logged work on HADOOP-17548:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Mar/21 12:13
            Start Date: 02/Mar/21 12:13
    Worklog Time Spent: 10m 
      Work Description: snvijaya commented on a change in pull request #2729:
URL: https://github.com/apache/hadoop/pull/2729#discussion_r585454114



##########
File path: 
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsClient.java
##########
@@ -302,7 +302,16 @@ public AbfsRestOperation createPath(final String path, 
final boolean isFile, fin
             HTTP_METHOD_PUT,
             url,
             requestHeaders);
-    op.execute();
+    try {
+      op.execute();
+    } catch (AzureBlobFileSystemException ex) {
+      String existingResource =

Review comment:
       first check if the httpstatus code is 409 and (!isFile), then retrieve 
the existingResource header.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 559900)
    Time Spent: 20m  (was: 10m)

> ABFS: Config for Mkdir overwrite
> --------------------------------
>
>                 Key: HADOOP-17548
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17548
>             Project: Hadoop Common
>          Issue Type: Sub-task
>    Affects Versions: 3.3.1
>            Reporter: Sumangala Patki
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The call to mkdirs with overwrite set to true results in an additional call 
> to set properties (LMT update, etc) at the backend, which is not required for 
> the HDFS scenario. Moreover, mkdirs on an existing file path returns success. 
> This PR provides an option to set the overwrite parameter to false, and 
> ensures that mkdirs on a file throws an exception.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to