[
https://issues.apache.org/jira/browse/HCATALOG-469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Francis Liu resolved HCATALOG-469.
----------------------------------
Resolution: Fixed
Fix Version/s: 0.4.1
checked into branch and trunk
> HiveClientCache may return a closed client
> ------------------------------------------
>
> Key: HCATALOG-469
> URL: https://issues.apache.org/jira/browse/HCATALOG-469
> Project: HCatalog
> Issue Type: Bug
> Affects Versions: 0.4, 0.5
> Reporter: Arup Malakar
> Assignee: Arup Malakar
> Fix For: 0.4.1
>
> Attachments: J370-patch9.diff
>
>
> HiveClientCache does a health check before returning the client. During the
> health check the client may get closed via the RemovalListener if
> 1) No one is else is using it
> 2) It is beyond expiry time for the client
> 3) Another thread access the case which may trigger the RemovalListener
> In this case the get() call would end up returning a closed client.
--
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