Skip to content

HDDS-6066. Cleanup OmService injection.#2896

Merged
bharatviswa504 merged 4 commits intoapache:masterfrom
bharatviswa504:HDDS-6066
Dec 10, 2021
Merged

HDDS-6066. Cleanup OmService injection.#2896
bharatviswa504 merged 4 commits intoapache:masterfrom
bharatviswa504:HDDS-6066

Conversation

@bharatviswa504
Copy link
Contributor

What changes were proposed in this pull request?

Cleanup OmService Injection.
With the proposal of HDDS-5881, S3G is not using S3 Tokens for auth, it is using S3G Kerberos credential plus token information is now part of actual Proto OMRequest Object. After this change, we do not need service field which we inject for tokens.

And also old code has issue, when one of the address is unresolved it fails injection. (Now anyway this code is not needed, we should be good)

What is the link to the Apache JIRA

[(Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HDDS-XXXX. Fix a typo in YYY.)

Please replace this section with the link to the Apache JIRA)](https://issues.apache.org/jira/browse/HDDS-6066)

How was this patch tested?

Existing tests. This is mostly removal of not required code.

@kerneltime
Copy link
Contributor

One minor suggestion. LGTM

@kerneltime
Copy link
Contributor

@bharatviswa504 if you wish to do the further clean up in a separate jira that is fine as well.

@bharatviswa504
Copy link
Contributor Author

@bharatviswa504 if you wish to do the further clean up in a separate jira that is fine as well.

Thanks, We have a Jira HDDS-4010 which touches the same related code. I will revisit this as part of HDDS-4010 Jira.

@bharatviswa504
Copy link
Contributor Author

@kerneltime
Thank You for the review.
To fix findbug did few more code changes. Can you take a look at latest changes.

@kerneltime
Copy link
Contributor

LGTM. It would be nice to remove OzoneServiceProvider.java altogether and introduce it when we have OM federation.

@hanishakoneru
Copy link
Contributor

Thanks @bharatviswa504 for working on this and @kerneltime for reviewing it.
LGTM. +1.

@bharatviswa504 bharatviswa504 merged commit 5dd1144 into apache:master Dec 10, 2021
@bharatviswa504
Copy link
Contributor Author

Thank You @hanishakoneru and @kerneltime for the review.

JacksonYao287 pushed a commit to JacksonYao287/ozone that referenced this pull request Feb 14, 2022
@bharatviswa504 bharatviswa504 deleted the HDDS-6066 branch July 19, 2023 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants