hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Wilfong (Commented) (JIRA)" <>
Subject [jira] [Commented] (HIVE-2937) TestHiveServerSessions hangs when executed directly
Date Wed, 11 Apr 2012 18:21:18 GMT


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 also both of those patches should have
only affected map reduce jobs, not the metastore.
> TestHiveServerSessions hangs when executed directly
> ---------------------------------------------------
>                 Key: HIVE-2937
>                 URL:
>             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:!default.jspa
For more information on JIRA, see:


View raw message