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

Daryn Sharp commented on HDFS-3516:
-----------------------------------

It's unclear to me whether it can be assumed there is an error stream if there 
is an unexpected return code.  The docs seem unclear about how to determine if 
an error occurred other than to check if the error stream is null.  Perhaps it 
makes sense to always get the error stream, but if null, fallback to the output 
stream?  Thoughts?
                
> Check content-type in WebHdfsFileSystem
> ---------------------------------------
>
>                 Key: HDFS-3516
>                 URL: https://issues.apache.org/jira/browse/HDFS-3516
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs client
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Tsz Wo (Nicholas), SZE
>         Attachments: h3516_20120607.patch, h3516_20120608.patch, 
> h3516_20120609.patch
>
>
> WebHdfsFileSystem currently tries to parse the response as json.  It may be a 
> good idea to check the content-type before parsing it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to