This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 6025765c5f HDDS-9560. Improve NSSummaryTask thread name (#5515)
6025765c5f is described below

commit 6025765c5f934d1464b4174c8ca58e28aa66511e
Author: Galsza <[email protected]>
AuthorDate: Tue Oct 31 11:32:18 2023 +0100

    HDDS-9560. Improve NSSummaryTask thread name (#5515)
---
 .../org/apache/hadoop/ozone/recon/tasks/NSSummaryTask.java     | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git 
a/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/tasks/NSSummaryTask.java
 
b/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/tasks/NSSummaryTask.java
index 61cc8ad10c..42356191c5 100644
--- 
a/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/tasks/NSSummaryTask.java
+++ 
b/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/tasks/NSSummaryTask.java
@@ -37,6 +37,7 @@ import java.util.concurrent.Executors;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Callable;
 import java.util.concurrent.Future;
+import java.util.concurrent.ThreadFactory;
 
 /**
  * Task to query data from OMDB and write into Recon RocksDB.
@@ -123,10 +124,11 @@ public class NSSummaryTask implements ReconOmTask {
         .reprocessWithLegacy(reconOMMetadataManager));
 
     List<Future<Boolean>> results;
-    ExecutorService executorService = Executors
-        .newFixedThreadPool(2,
-            new ThreadFactoryBuilder().setNameFormat("NSSummaryTask - %d")
-                .build());
+    ThreadFactory threadFactory = new ThreadFactoryBuilder()
+        .setNameFormat("Recon-NSSummaryTask-%d")
+        .build();
+    ExecutorService executorService = Executors.newFixedThreadPool(2,
+        threadFactory);
     try {
       results = executorService.invokeAll(tasks);
       for (int i = 0; i < results.size(); i++) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to