You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2017/09/30 23:13:01 UTC

[jira] [Updated] (KYLIN-2876) Ineffective check in ExternalAclProvider

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

Ted Yu updated KYLIN-2876:
--------------------------
    Description: 
{code}
        if (inited)
            return singleton;

        synchronized (ExternalAclProvider.class) {
            if (inited)
                return singleton;
{code}

If one thread assigns inited but without initialization complete, another thread may read the value of inited being true and use the partial result.

  was:
{code}
        if (inited)
            return singleton;

        synchronized (ExternalAclProvider.class) {
            if (inited)
                return singleton;
{code}
If one thread assigns inited but without initialization complete, another thread may read the value of inited being true and use the partial result.


> Ineffective check in ExternalAclProvider
> ----------------------------------------
>
>                 Key: KYLIN-2876
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2876
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: Ted Yu
>
> {code}
>         if (inited)
>             return singleton;
>         synchronized (ExternalAclProvider.class) {
>             if (inited)
>                 return singleton;
> {code}
> If one thread assigns inited but without initialization complete, another thread may read the value of inited being true and use the partial result.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)