mahesh kumar behera created HIVE-21694:
------------------------------------------
Summary: Hive driver waiting time is fixed for task getting
executed in parallel.
Key: HIVE-21694
URL: https://issues.apache.org/jira/browse/HIVE-21694
Project: Hive
Issue Type: Bug
Components: HiveServer2
Affects Versions: 4.0.0
Reporter: mahesh kumar behera
Assignee: mahesh kumar behera
Fix For: 4.0.0
During a command execution hive driver executes the task in a separate thread
if the task to be executed is set as parallel. After starting the task, driver
checks if the task has finished execution or not. If the task execution is not
finished it waits for 2 seconds before waking up again to check the task
status. In case of task with execution time in milliseconds, this wait time can
induce substantial overhead. So instead of fixed wait time, exponential
backedup sleep time can be used to reduce the sleep overhead. The sleep time
can start with 100ms and can increase up to 2 seconds doubling on each
iteration.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)