You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Duong (Jira)" <ji...@apache.org> on 2022/10/27 23:13:00 UTC
[jira] [Updated] (HDDS-7324) S3G: Avoid calling getS3Volume by using GetKeyInfo API.
[ https://issues.apache.org/jira/browse/HDDS-7324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Duong updated HDDS-7324:
------------------------
Summary: S3G: Avoid calling getS3Volume by using GetKeyInfo API. (was: S3G: Avoid calling getS3VolumeContext by using GetGeyInfo API.)
> S3G: Avoid calling getS3Volume by using GetKeyInfo API.
> -------------------------------------------------------
>
> Key: HDDS-7324
> URL: https://issues.apache.org/jira/browse/HDDS-7324
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Duong
> Priority: Major
>
> 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|https://github.com/apache/ozone/blob/master/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/protocol/ClientProtocol.java#L923-L923].
>
> That will reduce once roundtrip between S3G and OM for every GetKey API request.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org