runzhiwang commented on a change in pull request #1031:
URL: https://github.com/apache/hadoop-ozone/pull/1031#discussion_r436444819
##########
File path:
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java
##########
@@ -170,10 +169,10 @@ public RpcClient(ConfigurationSource conf, String
omServiceId)
OzoneManagerProtocol.class, conf
);
dtService = omTransport.getDelegationTokenService();
- ServiceInfoEx serviceInfoEx = ozoneManagerClient.getServiceInfo();
+ String certificate = ozoneManagerClient.getCaCertificate();
String caCertPem = null;
if (OzoneSecurityUtil.isSecurityEnabled(conf)) {
- caCertPem = serviceInfoEx.getCaCertificate();
+ caCertPem = certificate;
Review comment:
CI does not passed if we do this, maybe CI want
ozoneManagerClient.getCaCertificate throw exception even if security is not
enabled. I will find the reason.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]