pankaj72981 commented on a change in pull request #645: HBASE-22930 Set unique 
name to longCompactions/shortCompactions threads
URL: https://github.com/apache/hbase/pull/645#discussion_r326484905
 
 

 ##########
 File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactSplitThread.java
 ##########
 @@ -131,11 +132,12 @@ public Thread newThread(Runnable r) {
   private void createSplitExcecutors() {
     final String n = Thread.currentThread().getName();
     int splitThreads = conf.getInt(SPLIT_THREADS, SPLIT_THREADS_DEFAULT);
+    final AtomicInteger splitThreadCounter = new AtomicInteger(0);
     this.splits =
         (ThreadPoolExecutor) Executors.newFixedThreadPool(splitThreads, new 
ThreadFactory() {
           @Override
 
 Review comment:
   Thanks @Reidddddd and @anoopsjohn  for the quick review, have moved the 
counter local to  ThreadFactory in commit-2.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to