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

Chunhui Shi commented on CALCITE-1550:
--------------------------------------

This issue could be observed if it is running in high concurrent environment. 
It usually is not a problem.

> ConventionTraitDef.plannerConversionMap is not thread safe
> ----------------------------------------------------------
>
>                 Key: CALCITE-1550
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1550
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Chunhui Shi
>            Assignee: Julian Hyde
>
> We are using static instance ConventionTraitDef.INSTANCE globally and 
> plannerConversionMap(class WeakHashMap) defined in ConventionTraitDef class 
> is not threadsafe. And the data in the map could corrupt and cause dead loop 
> or other data error.
>   private final WeakHashMap<RelOptPlanner, ConversionData>
>   plannerConversionMap =
>       new WeakHashMap<RelOptPlanner, ConversionData>();



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

Reply via email to