Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-7223 Caching container location information in OM
  3. HDDS-7324

S3G: Avoid calling getS3Volume by using GetKeyInfo API.

    XMLWordPrintableJSON

Details

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

    Description

      HDDS-7230 implements the GetKeyInfo with the ability to assume S3 volume context by OM. That releases S3G from having to call `getS3VolumeContext` prior to calling `lookupKey`, as it does today.

      Changes include:

      • S3G Get Key API to call GetKeyInfo via RpcClient with `assumeS3Context=true` ( and without a `volumeName`). S3G doesn't need to call GetS3VolumeContext prior to GetKeyInfo. 
      • RpcClient once it sees an S3 context in the GetKeyInfo response, takes the user principal, and sets it to the S3LocalAuthContext.

       

      That will reduce once roundtrip between S3G and OM for every GetKey API request.

      Attachments

        Issue Links

          Activity

            People

              duongnguyen Duong
              duongnguyen Duong
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: