HDDS-2075. Tracing in OzoneManager call is propagated with wrong parent (#1415)

This commit is contained in:
Doroszlai, Attila 2019-09-11 20:59:01 +02:00 committed by Xiaoyu Yao
parent 9221704f85
commit 64ed6b177d
2 changed files with 7 additions and 5 deletions

View File

@ -156,8 +156,11 @@ public RpcClient(Configuration conf) throws IOException {
this.userRights = aclConfig.getUserDefaultRights();
this.groupRights = aclConfig.getGroupDefaultRights();
this.ozoneManagerClient = new OzoneManagerProtocolClientSideTranslatorPB(
this.conf, clientId.toString(), ugi);
this.ozoneManagerClient = TracingUtil.createProxy(
new OzoneManagerProtocolClientSideTranslatorPB(
this.conf, clientId.toString(), ugi),
OzoneManagerProtocol.class, conf
);
long scmVersion =
RPC.getProtocolVersion(StorageContainerLocationProtocolPB.class);
InetSocketAddress scmAddress = getScmAddressForClient();

View File

@ -207,10 +207,9 @@ public OzoneManagerProtocolClientSideTranslatorPB(OzoneConfiguration conf,
OzoneConfigKeys.OZONE_CLIENT_FAILOVER_SLEEP_MAX_MILLIS_KEY,
OzoneConfigKeys.OZONE_CLIENT_FAILOVER_SLEEP_MAX_MILLIS_DEFAULT);
this.rpcProxy = TracingUtil.createProxy(
this.rpcProxy =
createRetryProxy(omFailoverProxyProvider, maxRetries, maxFailovers,
sleepBase, sleepMax),
OzoneManagerProtocolPB.class, conf);
sleepBase, sleepMax);
this.clientID = clientId;
}