You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Simbarashe Dzinamarira (Jira)" <ji...@apache.org> on 2020/06/01 19:32:00 UTC

[jira] [Commented] (HDFS-14773) SWEBHDFS closes the connection before a client can read the error response for a DSQuotaExceededException

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

Simbarashe Dzinamarira commented on HDFS-14773:
-----------------------------------------------

[~zhaoyim] so I encountered the error with branch-2. I've now updated the affected version field of this jira.

> SWEBHDFS closes the connection before a client can read the error response for a DSQuotaExceededException
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-14773
>                 URL: https://issues.apache.org/jira/browse/HDFS-14773
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: webhdfs
>    Affects Versions: 2.7.0
>            Reporter: Simbarashe Dzinamarira
>            Priority: Major
>         Attachments: HDFS-14773-failing-test.patch
>
>
> When a DSQuotaExceededException is encountered using swebhdfs, the connection is closed before the client can read the error response. This does not happen for webhdfs.
> Attached is a patch for a test case that exposes the bug.
> You can recreate the bug on a live cluster using the steps below.
> *1) Create a directory and set a space quota*
> hdfs mkdir <directory-with-quota>
> hdfs dfsadmin -setSpaceQuota <N> <directory-with-quota> 
> *2) Write a file whose size exceeds the quota, using swebhdfs.*
> curl -L -i --negotiate -u : -X PUT -T largeFile "<namenode-url>:<port>/webhdfs/v1/<directory-with-quota>/largeFile?op=CREATE"
>  
>  



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org