drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chunhui Shi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-5151) ConventionTraitDef.plannerConversionMap is not thread safe
Date Thu, 22 Dec 2016 01:02:43 GMT

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

Chunhui Shi updated DRILL-5151:
-------------------------------
    Priority: Major  (was: Critical)

> ConventionTraitDef.plannerConversionMap is not thread safe
> ----------------------------------------------------------
>
>                 Key: DRILL-5151
>                 URL: https://issues.apache.org/jira/browse/DRILL-5151
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>            Reporter: Chunhui Shi
>            Assignee: Chunhui Shi
>
> 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)

Mime
View raw message