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

Return error when appending files by webhdfs rest api fails

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha2
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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.004.patch
          5 kB
          Yuanbo Liu
        2. HDFS-11195.003.patch
          5 kB
          Yuanbo Liu
        3. HDFS-11195.002.patch
          5 kB
          Yuanbo Liu
        4. HDFS-11195.001.patch
          8 kB
          Yuanbo Liu

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: