[ 
https://issues.apache.org/jira/browse/HIVE-22102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16906294#comment-16906294
 ] 

Hive QA commented on HIVE-22102:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12977464/HIVE-22102.1.patch

{color:red}ERROR:{color} -1 due to no test(s) being added or modified.

{color:green}SUCCESS:{color} +1 due to 16734 tests passed

Test results: 
https://builds.apache.org/job/PreCommit-HIVE-Build/18324/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/18324/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-18324/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12977464 - PreCommit-HIVE-Build

> Reduce HMS call when createing HiveSession
> ------------------------------------------
>
>                 Key: HIVE-22102
>                 URL: https://issues.apache.org/jira/browse/HIVE-22102
>             Project: Hive
>          Issue Type: Improvement
>          Components: HiveServer2
>            Reporter: Rajesh Balamohan
>            Priority: Trivial
>         Attachments: HIVE-22102.1.patch
>
>
> When establishing HiveSession, it ends up configuring session 
> variables/settings.
> As part of it, it ends up checking the database details. 
> [https://github.com/apache/hive/blob/master/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java#L314]
> Even if it is `default` DB, it ends up making this check. In corner cases, 
> these calls turn out to be expensive.
> {noformat}
> 2019-08-13T03:16:57,189  INFO [b42ba57f-1740-4174-855d-4e3f08319ca5 
> HiveServer2-Handler-Pool: Thread-1552313] metadata.Hive: Total time spent in 
> this metastore function was greater than 1000ms : getDatabase_(String, )=13265
> {noformat}
> We can just skip this check if its `DEFAULT_DATABASE_NAME` (default) DB. This 
> may not be an issue for CachedStore.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to