[ 
https://issues.apache.org/jira/browse/SENTRY-913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14956462#comment-14956462
 ] 

Dapeng Sun edited comment on SENTRY-913 at 10/14/15 8:04 AM:
-------------------------------------------------------------

A simple patch to fix it



was (Author: dapengsun):
A simple to fix it


> Thread safe improvement for sqoop binding singleton
> ---------------------------------------------------
>
>                 Key: SENTRY-913
>                 URL: https://issues.apache.org/jira/browse/SENTRY-913
>             Project: Sentry
>          Issue Type: Improvement
>            Reporter: Dapeng Sun
>            Assignee: Dapeng Sun
>         Attachments: SENTRY-913.001.patch
>
>
>  public static SqoopAuthBindingSingleton getInstance() {
>     if (instance != null) {
>       return instance;
>     }
>     instance = new SqoopAuthBindingSingleton();
>     return instance;
>   }
> getInstance() has Thread safe issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to