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

MappingSet is stateful, so it can't be shared between threads

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.14.0
    • Component/s: None
    • Labels:

      Description

      There are several instances where static MappingSet instances are used (for example NestedLoopJoinBatch and BaseSortWrapper). This causes instance reuse across threads when queries are executed concurrently. As MappingSet is a stateful class with visitor design pattern, such reuse causes invalid state.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vrozov Vlad Rozov
                Reporter:
                vrozov Vlad Rozov
                Reviewer:
                Paul Rogers
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: