HDDS-2075. Tracing in OzoneManager call is propagated with wrong parent (#1415)
This commit is contained in:
parent
9221704f85
commit
64ed6b177d
|
@ -156,8 +156,11 @@ public class RpcClient implements ClientProtocol {
|
|||
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();
|
||||
|
|
|
@ -207,10 +207,9 @@ public final class OzoneManagerProtocolClientSideTranslatorPB
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue