Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-7922

[FSO] S3G folder support fso layout filestatus s3A compatibility

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • None

    Description

      Currently there exists an incompatibility with file stats issued with s3a adapter through s3-gateway on directories created with fso layout.  

      S3a expects file status (exist) queries on directories issued through s3 gateway to have path names ending with a '/' slash.  The s3gateway returns directory exists on directory paths with and without a trailing slash due to internal path normalization (eg. path/dir1 == path/dir1/).

       

      File exists, file status is queried by s3A over s3gateway with Head requests (head-object s3 requests).  Proposed is an implementation to resolve the issue and to cover corner cases to support fso folders over s3g by modifying the s3g ObjectEndpoint to check whether the requested path is a directory, if so, to only return ok if path has trailing '/'.  This would support s3 Head requests and Get requests.  The type of object, where file or directory is determined in the head-object and get-object request through checking the keyInfo (modifying the OzoneKey and OzoneKeyDetails) isFile().

       

      A sample sequence diagram for this is attached.    

       

      Attachments

        Issue Links

          Activity

            People

              mladjangadzic Mladjan Gadzic
              NeilJoshi Neil Joshi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: