cchung100m commented on code in PR #9648:
URL: https://github.com/apache/ozone/pull/9648#discussion_r2712551274
##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/protocolPB/GrpcOmTransport.java:
##########
@@ -299,13 +299,42 @@ public void shutdown() {
for (Map.Entry<String, ManagedChannel> entry : channels.entrySet()) {
ManagedChannel channel = entry.getValue();
channel.shutdown();
+ }
+
+ final long maxWaitMillis = TimeUnit.SECONDS.toMillis(5);
+ long startDeadline = System.currentTimeMillis();
+ long elapsed = 0;
+ boolean allTerminated = false;
+
+ while (elapsed < maxWaitMillis) {
+ allTerminated = true;
+ for (Map.Entry<String, ManagedChannel> entry : channels.entrySet()) {
Review Comment:
Hi @yandrey321
Thanks for suggestions and I updated the part you mentioned.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]