kylin-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KYLIN-3588) Potentially duplicate put to RemoveBlackoutRealizationsRule#filters map
Date Mon, 24 Sep 2018 17:03:00 GMT
Ted Yu created KYLIN-3588:
-----------------------------

             Summary: Potentially duplicate put to RemoveBlackoutRealizationsRule#filters
map
                 Key: KYLIN-3588
                 URL: https://issues.apache.org/jira/browse/KYLIN-3588
             Project: Kylin
          Issue Type: Bug
            Reporter: Ted Yu


Here is related code:
{code}
        IRealizationFilter filter = filters.get(conf);
        if (filter == null) {
            try {
                Class<? extends IRealizationFilter> clz = ClassUtil.forName(conf.getQueryRealizationFilter(),
IRealizationFilter.class);
                filter = clz.getConstructor(KylinConfig.class).newInstance(conf);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
            filters.put(conf, filter);
{code}
Two threads may find out there is no filter for conf, they would proceed with creation of
IRealizationFilter instances and try to put into the map.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message