kylin-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jiatao.tao (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (KYLIN-2876) Ineffective check in ExternalAclProvider
Date Tue, 02 Jan 2018 03:46:02 GMT

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

jiatao.tao reassigned KYLIN-2876:
---------------------------------

    Assignee: jiatao.tao

> Ineffective check in ExternalAclProvider
> ----------------------------------------
>
>                 Key: KYLIN-2876
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2876
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: jiatao.tao
>
> {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)

Mime
View raw message