ashishkumar50 commented on code in PR #10125:
URL: https://github.com/apache/ozone/pull/10125#discussion_r3144995809


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/DirectoryDeletingService.java:
##########
@@ -175,7 +175,8 @@ public DirectoryDeletingService(long interval, TimeUnit 
unit,
         OMConfigKeys.OZONE_OM_RATIS_LOG_APPENDER_QUEUE_BYTE_LIMIT_DEFAULT,
         StorageUnit.BYTES);
     this.numberOfParallelThreadsPerStore = dirDeletingServiceCorePoolSize;
-    this.deletionThreadPool = new ThreadPoolExecutor(0, 
numberOfParallelThreadsPerStore,
+    this.deletionThreadPool = new ThreadPoolExecutor(
+        numberOfParallelThreadsPerStore, numberOfParallelThreadsPerStore,

Review Comment:
   We don't want all the threads to be active all the time. We should use 
`pool.allowCoreThreadTimeOut(true);`



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