[ https://issues.apache.org/jira/browse/HIVE-22872?focusedWorklogId=395846&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-395846 ]
ASF GitHub Bot logged work on HIVE-22872: ----------------------------------------- Author: ASF GitHub Bot Created on: 02/Mar/20 08:47 Start Date: 02/Mar/20 08:47 Worklog Time Spent: 10m Work Description: kgyrtkirk commented on 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 395846) Time Spent: 1h 10m (was: 1h) > Support multiple executors for scheduled queries > ------------------------------------------------ > > Key: HIVE-22872 > URL: https://issues.apache.org/jira/browse/HIVE-22872 > Project: Hive > Issue Type: Improvement > Reporter: Zoltan Haindrich > Assignee: Zoltan Haindrich > Priority: Major > Labels: pull-request-available > Attachments: HIVE-22872.01.patch, HIVE-22872.02.patch, > HIVE-22872.03.patch, HIVE-22872.04.patch, HIVE-22872.05.patch, > HIVE-22872.06.patch > > Time Spent: 1h 10m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.3.4#803005)