hfutatzhanghb commented on code in PR #6871:
URL: https://github.com/apache/hadoop/pull/6871#discussion_r1643984134


##########
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java:
##########
@@ -428,6 +456,25 @@ public RouterRpcServer(Configuration conf, Router router,
     initRouterFedRename();
   }
 
+  private void initAsyncThreadPool() {
+    int asyncHandlerCount = conf.getInt(DFS_ROUTER_RPC_ASYNC_HANDLER_COUNT,
+        DFS_ROUTER_RPC_ASYNC_HANDLER_COUNT_DEFAULT);
+    int asyncResponderCount = conf.getInt(DFS_ROUTER_RPC_ASYNC_RESPONDER_COUNT,
+        DFS_ROUTER_RPC_ASYNC_RESPONDER_COUNT_DEFAULT);
+    synchronized (RouterRpcServer.class) {
+      if (asyncRouterHandler == null) {
+        LOG.info("init router async handler count: {}", asyncHandlerCount);
+        asyncRouterHandler = Executors.newFixedThreadPool(
+            asyncHandlerCount, new AsyncThreadFactory("router async handler 
"));
+      }
+      if (asyncRouterResponder == null) {
+        LOG.info("init router async responder count: {}", asyncResponderCount);
+        asyncRouterResponder = Executors.newFixedThreadPool(
+            asyncHandlerCount, new AsyncThreadFactory("router async responder 
"));

Review Comment:
   @KeeProMise Hi, sir. here should be asyncResponderCount right?



-- 
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]

Reply via email to