[jboss-jira] [JBoss JIRA] (DROOLS-1359) Race condition in MVELDialectRuntimeData.getParserConfiguration
Anuj Shah (JIRA)
issues at jboss.org
Tue Nov 15 13:10:00 EST 2016
[ https://issues.jboss.org/browse/DROOLS-1359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13323161#comment-13323161 ]
Anuj Shah commented on DROOLS-1359:
-----------------------------------
Just committed the test case:
https://github.com/anujshahwork/testcode/tree/master/drools1359
> Race condition in MVELDialectRuntimeData.getParserConfiguration
> ---------------------------------------------------------------
>
> Key: DROOLS-1359
> URL: https://issues.jboss.org/browse/DROOLS-1359
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 5.5.0.Final, 6.5.0.Final
> Reporter: Anuj Shah
> Assignee: Mario Fusco
>
> MVELDialectRuntimeData attempts to hold a lazy loaded ParserConfiguration. The getParserConfiguration method sets this to a new configuration object and then sets the imports on the configuration. Between these two steps another thread could retrieve the stale configuration and use it. This could result in a number of exceptions in compilation.
> A simple fix is to delay assignment of new ParserConfiguration until after the imports are set.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list