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

ASF GitHub Bot commented on KYLIN-3588:
---------------------------------------

coveralls edited a comment on issue #248: KYLIN-3588, fix potentially duplicate 
putting in RemoveBlackoutRealiz…
URL: https://github.com/apache/kylin/pull/248#issuecomment-424232479
 
 
   ## Pull Request Test Coverage Report for [Build 
3690](https://coveralls.io/builds/19227242)
   
   * **0** of **7**   **(0.0%)**  changed or added relevant lines in **1** file 
are covered.
   * **7** unchanged lines in **3** files lost coverage.
   * Overall coverage increased (+**0.0008%**) to **23.169%**
   
   ---
   
   |  Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
   | :-----|--------------|--------|---: |
   | 
[query/src/main/java/org/apache/kylin/query/routing/rules/RemoveBlackoutRealizationsRule.java](https://coveralls.io/builds/19227242/source?filename=query%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fkylin%2Fquery%2Frouting%2Frules%2FRemoveBlackoutRealizationsRule.java#L62)
 | 0 | 7 | 0.0%
   <!-- | **Total:** | **0** | **7** | **0.0%** | -->
   
   |  Files with Coverage Reduction | New Missed Lines | % |
   | :-----|--------------|--: |
   | 
[query/src/main/java/org/apache/kylin/query/routing/rules/RemoveBlackoutRealizationsRule.java](https://coveralls.io/builds/19227242/source?filename=query%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fkylin%2Fquery%2Frouting%2Frules%2FRemoveBlackoutRealizationsRule.java#L73)
 | 1 | 0.0% |
   | 
[core-dictionary/src/main/java/org/apache/kylin/dict/lookup/cache/RocksDBLookupTable.java](https://coveralls.io/builds/19227242/source?filename=core-dictionary%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fkylin%2Fdict%2Flookup%2Fcache%2FRocksDBLookupTable.java#L64)
 | 1 | 81.08% |
   | 
[core-cube/src/main/java/org/apache/kylin/cube/inmemcubing/MemDiskStore.java](https://coveralls.io/builds/19227242/source?filename=core-cube%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fkylin%2Fcube%2Finmemcubing%2FMemDiskStore.java#L439)
 | 5 | 77.81% |
   <!-- | **Total:** | **7** |  | -->
   
   |  Totals | [![Coverage 
Status](https://coveralls.io/builds/19227242/badge)](https://coveralls.io/builds/19227242)
 |
   | :-- | --: |
   | Change from base [Build 3689](https://coveralls.io/builds/19227187): |  
0.0008% |
   | Covered Lines: | 16159 |
   | Relevant Lines: | 69745 |
   
   ---
   ##### đź’›  - [Coveralls](https://coveralls.io)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> 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
>            Assignee: jiatao.tao
>            Priority: Minor
>
> 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)

Reply via email to