-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-14490. HadoopRpcOMFollowerProxyProvider should explicitly use OzoneManagerProtocolPB #9670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…oneManagerProtocolPB
adoroszlai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ivandika3 for the patch.
| final String combinedInfo = "[" + failoverProxy.getOMProxies().stream() | ||
| .map(a -> a.proxyInfo) | ||
| .reduce((a, b) -> a + ", " + b).orElse("") + "]"; | ||
| @SuppressWarnings("unchecked") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suppression is no longer needed.
| } | ||
|
|
||
| @VisibleForTesting | ||
| void setUseFollowerRead(boolean flag) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit (not introduced in this patch): This is currently unused. Is this going to change in follow-up or can be removed?
| @VisibleForTesting | ||
| public static final Logger LOG = LoggerFactory.getLogger(HadoopRpcOMFollowerReadFailoverProxyProvider.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit (not introduced in this patch): this can be private and annotation removed.
| public HadoopRpcOMFollowerReadFailoverProxyProvider(String omServiceId, Class<T> protocol, | ||
| HadoopRpcOMFailoverProxyProvider<T> failoverProxy) { | ||
| this.protocolClass = protocol; | ||
| public HadoopRpcOMFollowerReadFailoverProxyProvider(String omServiceId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: omServiceId is unused
What changes were proposed in this pull request?
Since HadoopRpcOMFollowerReadFailoverProxyProvider handles only submitRequest from OzoneManagerProtocolPB, we should simply make it to only handle OzoneManagerProtocolPB.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-14490
How was this patch tested?
CI (https://github.com/ivandika3/ozone/actions/runs/21347454675)