HDDS-1616. ManagedChannel references are being leaked in while removing RaftGroup. Contributed by Mukul Kumar Singh. (#1039)
This commit is contained in:
parent
75b1e458b1
commit
8b0d1adf31
@ -90,10 +90,11 @@ static void destroyPipeline(DatanodeDetails dn, PipelineID pipelineID,
|
|||||||
new SecurityConfig(ozoneConf));
|
new SecurityConfig(ozoneConf));
|
||||||
final TimeDuration requestTimeout =
|
final TimeDuration requestTimeout =
|
||||||
RatisHelper.getClientRequestTimeout(ozoneConf);
|
RatisHelper.getClientRequestTimeout(ozoneConf);
|
||||||
RaftClient client = RatisHelper
|
try(RaftClient client = RatisHelper
|
||||||
.newRaftClient(SupportedRpcType.valueOfIgnoreCase(rpcType), p,
|
.newRaftClient(SupportedRpcType.valueOfIgnoreCase(rpcType), p,
|
||||||
retryPolicy, maxOutstandingRequests, tlsConfig, requestTimeout);
|
retryPolicy, maxOutstandingRequests, tlsConfig, requestTimeout)) {
|
||||||
client
|
client.groupRemove(RaftGroupId.valueOf(pipelineID.getId()),
|
||||||
.groupRemove(RaftGroupId.valueOf(pipelineID.getId()), true, p.getId());
|
true, p.getId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user