smengcl commented on code in PR #11454:
URL: https://github.com/apache/ozone/pull/11454#discussion_r4385119225
##########
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientManager.java:
##########
@@ -91,6 +98,10 @@ public XceiverClientManager(ConfigurationSource conf,
Objects.requireNonNull(conf, "conf == null");
long staleThresholdMs = clientConf.getStaleThreshold(MILLISECONDS);
+ // at most one thread, which exits when idle
+ this.closeExecutor = new ThreadPoolExecutor(0, 1, 60, TimeUnit.SECONDS,
Review Comment:
Done. The queue is now unbounded, so a close falls back to the caller thread
only when the manager is already closed.
--
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]