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

Danny Becker edited comment on HDFS-14851 at 9/21/19 1:05 AM:
--------------------------------------------------------------

[~jojochuang] HDFS already does this behavior. The problem here is that WebHdfs 
will return a 200 code an then fail the read because it has a missing block. 
HTTP protocol does not allow us to send an error response when it is expecting 
to read data. So we need to catch this before sending the response code.


was (Author: dannytbecker):
[~jojochuang] HDFS already does this. behavior. The problem here is that 
WebHdfs will return a 200 code an then fail the read because it has a missing 
block. HTTP protocol does not allow us to send an error response when it is 
expecting to read data. So we need to catch this before sending the response 
code.

> WebHdfs Returns 200 Status Code for Open of Files with Corrupt Blocks
> ---------------------------------------------------------------------
>
>                 Key: HDFS-14851
>                 URL: https://issues.apache.org/jira/browse/HDFS-14851
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: webhdfs
>            Reporter: Danny Becker
>            Assignee: Danny Becker
>            Priority: Minor
>         Attachments: HDFS-14851.001.patch
>
>
> WebHdfs returns 200 status code for Open operations on files with missing or 
> corrupt blocks.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to