HDDS-1616. ManagedChannel references are being leaked in while removing RaftGroup. Contributed by Mukul Kumar Singh. (#1039)

This commit is contained in:
Mukul Kumar Singh 2019-07-03 03:04:49 +05:30 committed by Bharat Viswanadham
parent 75b1e458b1
commit 8b0d1adf31
1 changed files with 5 additions and 4 deletions

View File

@ -90,10 +90,11 @@ public final class RatisPipelineUtils {
new SecurityConfig(ozoneConf));
final TimeDuration requestTimeout =
RatisHelper.getClientRequestTimeout(ozoneConf);
RaftClient client = RatisHelper
try(RaftClient client = RatisHelper
.newRaftClient(SupportedRpcType.valueOfIgnoreCase(rpcType), p,
retryPolicy, maxOutstandingRequests, tlsConfig, requestTimeout);
client
.groupRemove(RaftGroupId.valueOf(pipelineID.getId()), true, p.getId());
retryPolicy, maxOutstandingRequests, tlsConfig, requestTimeout)) {
client.groupRemove(RaftGroupId.valueOf(pipelineID.getId()),
true, p.getId());
}
}
}