You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2020/03/02 08:47:05 UTC

[GitHub] [hive] kgyrtkirk commented on a change in pull request #924: HIVE-22872 schq executors

kgyrtkirk commented on a change in pull request #924: HIVE-22872 schq executors
URL: https://github.com/apache/hive/pull/924#discussion_r386258494
 
 

 ##########
 File path: ql/src/java/org/apache/hadoop/hive/ql/scheduled/ScheduledQueryExecutionService.java
 ##########
 @@ -116,6 +133,37 @@ private void sleep(long idleSleepTime) throws InterruptedException {
       }
     }
 
+  }
+
+  private void workerStarted(ScheduledQueryExecutor executor) {
+    runningWorkers.add(executor);
+    usedExecutors.incrementAndGet();
+  }
+
+  private void workerStopped(ScheduledQueryExecutor executor) {
+    usedExecutors.decrementAndGet();
+    runningWorkers.remove(executor);
+    forceScheduleCheck();
+  }
+
+  class ScheduledQueryExecutor implements Runnable {
 
 Review comment:
   also renamed a few methods to use the "executor" word more consistently

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org