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

Return error when appending files by webhdfs rest api fails

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

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha2
    • None
    • None
    • Reviewed

    Description

      Suppose that there is a Hadoop cluster contains only one datanode, and dfs.replication=3. Run:

      curl -i -X POST -T <LOCAL_FILE> "http://<DATANODE>:<PORT>/webhdfs/v1/<PATH>?op=APPEND"
      

      it returns 200, even though append operation fails.

      Attachments

        1. HDFS-11195.001.patch
          8 kB
          Yuanbo Liu
        2. HDFS-11195.002.patch
          5 kB
          Yuanbo Liu
        3. HDFS-11195.003.patch
          5 kB
          Yuanbo Liu
        4. HDFS-11195.004.patch
          5 kB
          Yuanbo Liu

        Issue Links

        Activity

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

          People

            yuanbo Yuanbo Liu
            yuanbo Yuanbo Liu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment