Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5151

ConventionTraitDef.plannerConversionMap is not thread safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      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>();

      Attachments

        Activity

          People

            cshi Chunhui Shi
            cshi Chunhui Shi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: