This is an automated email from the ASF dual-hosted git repository.
bharat pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 8b0d1ad HDDS-1616. ManagedChannel references are being leaked in
while removing RaftGroup. Contributed by Mukul Kumar Singh. (#1039)
8b0d1ad is described below
commit 8b0d1adf31ca21992ef8bce3e3b5a038421b4edc
Author: Mukul Kumar Singh <[email protected]>
AuthorDate: Wed Jul 3 03:04:49 2019 +0530
HDDS-1616. ManagedChannel references are being leaked in while removing
RaftGroup. Contributed by Mukul Kumar Singh. (#1039)
---
.../org/apache/hadoop/hdds/scm/pipeline/RatisPipelineUtils.java | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git
a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/RatisPipelineUtils.java
b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/RatisPipelineUtils.java
index 6d2f08b..85e4c37 100644
---
a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/RatisPipelineUtils.java
+++
b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/RatisPipelineUtils.java
@@ -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());
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]