hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-4160) libhdfs / fuse-dfs should implement O_CREAT | O_EXCL
Date Sat, 02 May 2015 04:28:08 GMT

    [ https://issues.apache.org/jira/browse/HDFS-4160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14524632#comment-14524632
] 

Hadoop QA commented on HDFS-4160:
---------------------------------

\\
\\
| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:red}-1{color} | patch |   0m  0s | The patch command could not apply the patch during
dryrun. |
\\
\\
|| Subsystem || Report/Notes ||
| Patch URL | http://issues.apache.org/jira/secure/attachment/12585242/HDFS-4160.001.patch
|
| Optional Tests | javac unit |
| git revision | trunk / f1a152c |
| Console output | https://builds.apache.org/job/PreCommit-HDFS-Build/10541/console |


This message was automatically generated.

> libhdfs / fuse-dfs should implement O_CREAT | O_EXCL
> ----------------------------------------------------
>
>                 Key: HDFS-4160
>                 URL: https://issues.apache.org/jira/browse/HDFS-4160
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: libhdfs
>    Affects Versions: 2.0.3-alpha
>            Reporter: Colin Patrick McCabe
>            Assignee: Colin Patrick McCabe
>            Priority: Minor
>         Attachments: HDFS-4160.001.patch
>
>
> {{hdfsOpenFile}} contains this code:
> {code}
> if ((flags & O_CREAT) && (flags & O_EXCL)) {                        
      
>   fprintf(stderr, "WARN: hdfs does not truly support O_CREATE && O_EXCL\n");
> } 
> {code}
> But {{hdfsOpenFile}} could easily support *O_CREAT* | *O_EXCL* by calling {{FileSystem#create}}
with {{overwrite = false}}.
> We should do this.  It would also benefit {{fuse-dfs}}.



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

Mime
View raw message