You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/05/17 08:27:09 UTC

[GitHub] [ozone] smengcl commented on pull request #3397: HDDS-6612. [Multi-Tenant] Add a config key to enable or disable S3 Multi-Tenancy feature

smengcl commented on PR #3397:
URL: https://github.com/apache/ozone/pull/3397#issuecomment-1128572967

   > Thanks for the updates @smengcl. LGTM, but can we unit test this new code path? We can check for the exception thrown from the config check method with different valid/invalid config combinations. We can also directly invoke `OzoneManagerRatisUtils#createClientRequest`, `OzoneManagerRequestHandler#handleReadRequest`, and `OzoneManager#getS3VolumeContext` to check that requests are correctly blocked when the feature is disabled.
   
   Thanks @errose28 . I have added the new tests.
   
   Note that `OzoneManager#getS3VolumeContext` will not throw exception when Multi-Tenancy is disabled. Actually in this case, we won't be checking any MT tables at all. All requests will simply be redirected to `s3v` for backwards compatibility.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org