[ 
https://issues.apache.org/jira/browse/HCATALOG-469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arup Malakar updated HCATALOG-469:
----------------------------------

    Attachment: J370-patch9.diff

I have added synchronization to avoid the mentioned situation.

[The patch could be applied to both trunk/branch]
                
> 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
>         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

        

Reply via email to