[ https://issues.apache.org/jira/browse/DRILL-6435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16488461#comment-16488461 ]
ASF GitHub Bot commented on DRILL-6435: --------------------------------------- paul-rogers commented on issue #1286: DRILL-6435: MappingSet is stateful, so it can't be shared between threads URL: https://github.com/apache/drill/pull/1286#issuecomment-391595679 Thanks much for the explanation: I learned something new! +1 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > MappingSet is stateful, so it can't be shared between threads > ------------------------------------------------------------- > > Key: DRILL-6435 > URL: https://issues.apache.org/jira/browse/DRILL-6435 > Project: Apache Drill > Issue Type: Bug > Reporter: Vlad Rozov > Assignee: Vlad Rozov > Priority: Major > Fix For: 1.14.0 > > > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)