adoroszlai opened a new pull request, #5069:
URL: https://github.com/apache/ozone/pull/5069
## What changes were proposed in this pull request?
* extract `IAccessAuthorizer` creation out of `OmMetadataReader` to a
factory class
* pass `IAccessAuthorizer` instance to `OmMetadataReader`
* replace the `bNeedAccessAuthInitialization` flag with two separate
methods in the factory class
* use direct instantiation instead of reflection for known implementations
(`OzoneAccessAuthorizer` and `OzoneNativeAuthorizer`)
* eliminate cumbersome way of checking whether native authorizer is in use
(in `OMBucketSetPropertyRequest` and `OMKeyRequest`)
* make `OzoneAccessAuthorizer` (no-op implementation) a singleton (without
strictly enforcing it for compatibility)
* use `OzoneAccessAuthorizer`, instead of `null`, if ACL is disabled
* add unit test for `IAccessAuthorizer` creation
https://issues.apache.org/jira/browse/HDDS-9018
## How was this patch tested?
CI:
https://github.com/adoroszlai/hadoop-ozone/actions/runs/5554283426
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]