hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bennie Schut (JIRA)" <>
Subject [jira] Commented: (HIVE-1482) Not all jdbc calls are threadsafe.
Date Fri, 06 Aug 2010 09:06:16 GMT


Bennie Schut commented on HIVE-1482:

Ok I think I covered the sync stuff like you sugested.
For the state part I was looking at how SessionState is used within the HiveConnection.
There are several spots where we pass a sessionstate object (HivePreparedStatement, HiveStatement)
but both places end up not actually using the object. Simplest thing would be not to pass
them. But even if we do pass it I think it only contains session data and not query specific
Query specific things like column names/types etc. can be done nicely within a sync block
together with the client call for the query itself so that shouldn't be a problem.

I'll upload a patch with what I have soon.

> Not all jdbc calls are threadsafe.
> ----------------------------------
>                 Key: HIVE-1482
>                 URL:
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Drivers
>    Affects Versions: 0.7.0
>            Reporter: Bennie Schut
>             Fix For: 0.7.0
> As per jdbc spec they should be threadsafe:

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message