Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1550

ConventionTraitDef.plannerConversionMap is not thread safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 1.12.0
    • 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

        Issue Links

          Activity

            People

              julianhyde Julian Hyde
              cshi Chunhui Shi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: