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

Kevin Wilfong commented on HIVE-2937:
-------------------------------------

I ran into this issue too.  It seems to be caused by creating the HiveClient's 
too quickly.  The initialization of the HiveClient initializes the 
HiveServerHandler which initializes the HMSHandler.  The initializations of the 
HMSHandler's happen in such quick succession that when the second call to 
create the default db occurs, the first call hasn't finished creating the db 
yet so it attempts to create the same db and never gets out of this method 
(possibly a derby issue).

It could also be fixed by adding a Thread.sleep between creating HiveClient's, 
but Navis's solution seems much more appropriate.

@Ashutosh I don't think it is related to either of those patches as previous 
builds appear to fail for the same reason
https://builds.apache.org/job/Hive-trunk-h0.21/1355/ also both of those patches 
should have only affected map reduce jobs, not the metastore.
                
> TestHiveServerSessions hangs when executed directly
> ---------------------------------------------------
>
>                 Key: HIVE-2937
>                 URL: https://issues.apache.org/jira/browse/HIVE-2937
>             Project: Hive
>          Issue Type: Test
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Trivial
>         Attachments: HIVE-2937.D2697.1.patch
>
>
> {code}
> ant test -Doffline=true -Dtestcase=TestHiveServerSessions
> {code}
> Hangs infinitely.
> I couldn't imagine exact cause of the problem, but found that by adding 'new 
> HiveServer.HiveServerHandler();' in setup(), test resulted to success.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to