Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-5447 HttpFS support in Ozone
  3. HDDS-5828

[HTTPFSGW] Add proper handling for unsupported operations

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • None

    Description

      As stated in the design doc, we need to address unsupported calls properly in HTTPFS GW. There is a default error handler, that handles queries that are supported by the HDFS NameNode but are not supported by the HDFS HTTPFSGW implementation, we can partly rely on that, but there are some operations that would require extra care.

      Relevant part of the design:
      Handling of unsupported calls
      For calls that we do not have support for in Ozone, HTTP 501 Not Implemented status code has to be returned. As described in RFC2616 by the World Wide Web Consortium, this status code is the response to be given when "The server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource."
      Handling of invalid operations on volumes or buckets
      For example file creation is not allowed by the ofs scheme on volume and bucket paths, these operations should return an HTTP 400 Bad Request status code, with a proper error message in the response body.

      Attachments

        Issue Links

          Activity

            People

              zitadombi Zita Dombi
              pifta István Fajth
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: