Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4160

libhdfs / fuse-dfs should implement O_CREAT | O_EXCL

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 2.0.3-alpha
    • None
    • libhdfs

    Description

      hdfsOpenFile contains this code:

      if ((flags & O_CREAT) && (flags & O_EXCL)) {                               
        fprintf(stderr, "WARN: hdfs does not truly support O_CREATE && O_EXCL\n");
      } 
      

      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.

      Attachments

        1. HDFS-4160.001.patch
          9 kB
          Colin McCabe

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cmccabe Colin McCabe
            cmccabe Colin McCabe

            Dates

              Created:
              Updated:

              Slack

                Issue deployment