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

SWEBHDFS closes the connection before a client can read the error response for a DSQuotaExceededException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.0
    • None
    • webhdfs
    • None

    Description

      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"

       

       

      Attachments

        1. HDFS-14773-failing-test.patch
          3 kB
          Simbarashe Dzinamarira

        Activity

          People

            Unassigned Unassigned
            simbadzina Simbarashe Dzinamarira
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: