adoroszlai commented on code in PR #5491:
URL: https://github.com/apache/ozone/pull/5491#discussion_r1372153306


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/replication/ReplicationServer.java:
##########
@@ -81,17 +83,20 @@ public ReplicationServer(ContainerController controller,
     int replicationQueueLimit =
         replicationConfig.getReplicationQueueLimit();
     LOG.info("Initializing replication server with thread count = {}"
-        + " queue length = {}",
+            + " queue length = {}",
         replicationConfig.getReplicationMaxStreams(),
         replicationConfig.getReplicationQueueLimit());
-    this.executor =
-        new ThreadPoolExecutor(replicationServerWorkers,
-            replicationServerWorkers,
-            60, TimeUnit.SECONDS,
-            new LinkedBlockingQueue<>(replicationQueueLimit),
-            new ThreadFactoryBuilder().setDaemon(true)
-                .setNameFormat("ReplicationContainerReader-%d")
-                .build());
+    ThreadFactory threadFactory = new ThreadFactoryBuilder().setDaemon(true)
+        .setNameFormat(threadNamePrefix + "ReplicationContainerReader" +
+            "-%d")

Review Comment:
   Nit: please reformat.
   
   ```suggestion
       ThreadFactory threadFactory = new ThreadFactoryBuilder()
           .setDaemon(true)
           .setNameFormat(threadNamePrefix + "ReplicationContainerReader-%d")
   ```



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