[
https://issues.apache.org/jira/browse/HIVE-4901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Azrael Park updated HIVE-4901:
------------------------------
Attachment: HIVE-4901.patch
> Connection should be closed when Statement#execute() failed
> byTTransportException
> ---------------------------------------------------------------------------------
>
> Key: HIVE-4901
> URL: https://issues.apache.org/jira/browse/HIVE-4901
> Project: Hive
> Issue Type: Improvement
> Components: JDBC
> Affects Versions: 0.11.0
> Environment: Ubuntu 11.10
> Reporter: Azrael Park
> Priority: Trivial
> Attachments: HIVE-4901.patch
>
>
> Currently, Connection is not closed when Statement#execute() failed by
> TTransportException due to shutdown hiveserver. It means this connection
> can't be used but connection status is still 'not closed'. It might be clear
> that query execution got 'Connection Closed' exception if try to use this
> connection.
> {noformat}
> Scenario is as following:
> 1. Client connect hiveserver.
> 2. Hiveserver shutdown.
> 3. Client execute query: throw 'Socket' exception and close connection.
> 4. Hiveserver start.
> 5. Client execute query: throw 'Connection Closed' exception.
> 6. May be reconnect.
> {noformat}
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira