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

Hive QA commented on HIVE-5524:
-------------------------------



{color:green}Overall{color}: +1 all checks pass

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

{color:green}SUCCESS:{color} +1 4761 tests passed

Test results: 
http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/594/testReport
Console output: 
http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/594/console

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

This message is automatically generated.

ATTACHMENT ID: 12608131

> Unwanted delay in getting Hive metastore connection with 
> METASTORE_CLIENT_CONNECT_RETRY_DELAY/
> ----------------------------------------------------------------------------------------------
>
>                 Key: HIVE-5524
>                 URL: https://issues.apache.org/jira/browse/HIVE-5524
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>            Reporter: Rajesh Balamohan
>         Attachments: HIVE-5524.patch
>
>
> Reference:  
> http://svn.apache.org/repos/asf/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
> >>>>
>  for (URI store : metastoreUris) {
> ....
> ...
>  if (isConnected) {
>           break;
>         }
>       }
> // Wait before launching the next round of connection retries.
>       if (retryDelaySeconds > 0) {
>         try {
>           LOG.info("Waiting " + retryDelaySeconds + " seconds before next 
> connection attempt.");
>           Thread.sleep(retryDelaySeconds * 1000);
>         } catch (InterruptedException ignore) {}
>       }
> >>>>
> By default "hive.metastore.client.connect.retry.delay" is set to 1 second.  
> If it is set to 10 seconds, this code will wait for 10 seconds even if a 
> successful connection is made in first attempt itself.
> This can be avoided by changing to 
> >>>>
>  if (!isConnected && retryDelaySeconds > 0) {
> ....
> >>>>



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to