[ https://issues.apache.org/jira/browse/HIVE-21425?focusedWorklogId=373212&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-373212 ]
ASF GitHub Bot logged work on HIVE-21425: ----------------------------------------- Author: ASF GitHub Bot Created on: 16/Jan/20 19:00 Start Date: 16/Jan/20 19:00 Worklog Time Spent: 10m Work Description: belugabehr commented on pull request #564: HIVE-21425: Use DirectExecutorService for getInputSummary URL: https://github.com/apache/hive/pull/564 ---------------------------------------------------------------- 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: 373212) Time Spent: 0.5h (was: 20m) > Use DirectExecutorService for getInputSummary > --------------------------------------------- > > Key: HIVE-21425 > URL: https://issues.apache.org/jira/browse/HIVE-21425 > Project: Hive > Issue Type: Improvement > Components: HiveServer2 > Affects Versions: 4.0.0, 3.2.0 > Reporter: David Mollitor > Assignee: David Mollitor > Priority: Minor > Labels: pull-request-available > Fix For: 4.0.0 > > Attachments: HIVE-21425.1.patch, HIVE-21425.1.patch, > HIVE-21425.1.patch > > Time Spent: 0.5h > Remaining Estimate: 0h > > {code:java|title=Utilities.java} > int numExecutors = getMaxExecutorsForInputListing(ctx.getConf(), > pathNeedProcess.size()); > if (numExecutors > 1) { > LOG.info("Using {} threads for getContentSummary", numExecutors); > executor = Executors.newFixedThreadPool(numExecutors, > new ThreadFactoryBuilder().setDaemon(true) > .setNameFormat("Get-Input-Summary-%d").build()); > } else { > executor = null; > } > {code} > https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java#L2482-L2490 > Instead of using a 'null' {{ExecutorService}}, use Guava's > {{DirectExecutorService}} and remove special casing for a 'null' value. -- This message was sent by Atlassian Jira (v8.3.4#803005)