[ 
https://issues.apache.org/jira/browse/HIVE-24270?focusedWorklogId=504904&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-504904
 ]

ASF GitHub Bot logged work on HIVE-24270:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 26/Oct/20 20:16
            Start Date: 26/Oct/20 20:16
    Worklog Time Spent: 10m 
      Work Description: mustafaiman commented on a change in pull request #1577:
URL: https://github.com/apache/hive/pull/1577#discussion_r512240902



##########
File path: 
service/src/java/org/apache/hive/service/cli/session/SessionManager.java
##########
@@ -135,6 +138,13 @@ public synchronized void init(HiveConf hiveConf) {
     userIpAddressLimit = 
hiveConf.getIntVar(ConfVars.HIVE_SERVER2_LIMIT_CONNECTIONS_PER_USER_IPADDRESS);
     LOG.info("Connections limit are user: {} ipaddress: {} user-ipaddress: 
{}", userLimit, ipAddressLimit,
       userIpAddressLimit);
+
+    int cleanupThreadCount = 
hiveConf.getIntVar(ConfVars.HIVE_ASYNC_CLEANUP_SERVICE_THREAD_COUNT);
+    int cleanupQueueSize = 
hiveConf.getIntVar(ConfVars.HIVE_ASYNC_CLEANUP_SERVICE_QUEUE_SIZE);
+    if (cleanupThreadCount > 0) {
+      cleanupService = new EventualCleanupService(cleanupThreadCount, 
cleanupQueueSize);
+    }
+    cleanupService.start();

Review comment:
       fixed




----------------------------------------------------------------
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: 504904)
    Time Spent: 2h 10m  (was: 2h)

> Move scratchdir cleanup to background
> -------------------------------------
>
>                 Key: HIVE-24270
>                 URL: https://issues.apache.org/jira/browse/HIVE-24270
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Mustafa Iman
>            Assignee: Mustafa Iman
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> In cloud environment, scratchdir cleaning at the end of the query may take 
> long time. This causes client to hang up to 1 minute even after the results 
> were streamed back. During this time client just waits for cleanup to finish. 
> Cleanup can take place in the background in HiveServer.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to