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

Xiao Chen commented on HDFS-11195:
----------------------------------

Thanks [~yuanbo] for reporting the issue and providing a fix.

Could you explain a little more about your fix? From a quick look I doubt using 
the correct {{resp}} in {{exceptionCaught}} may solve the issue (sorry if I'm 
wrong).

For tests, I think we should try harder with the existing methods. For example, 
would {{MiniDFSCluster#shutdownDataNodes}} right before append enough to fail 
for the test? {{GenericTestUtils#assertExceptionContains}} could also be 
helpful for the test case.

> When appending files by webhdfs rest api fails, it returns 200
> --------------------------------------------------------------
>
>                 Key: HDFS-11195
>                 URL: https://issues.apache.org/jira/browse/HDFS-11195
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Yuanbo Liu
>            Assignee: Yuanbo Liu
>         Attachments: HDFS-11195.001.patch
>
>
> Suppose that there is a Hadoop cluster contains only one datanode, and 
> dfs.replication=3. Run:
> {code}
> curl -i -X POST -T <LOCAL_FILE> 
> "http://<DATANODE>:<PORT>/webhdfs/v1/<PATH>?op=APPEND"
> {code}
> it returns 200, even though append operation fails.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to