[jboss-jira] [JBoss JIRA] (DROOLS-70) NPE when an event expires during evaluation of accumulate when run as fireUntilHalt()
Edson Tirelli (JIRA)
jira-events at lists.jboss.org
Tue Mar 12 13:14:42 EDT 2013
[ https://issues.jboss.org/browse/DROOLS-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12760640#comment-12760640 ]
Edson Tirelli commented on DROOLS-70:
-------------------------------------
Mario, I've been unable to reproduce this so far. I've run the test you created a ton of times in a loop, but I can't reproduce the error in an i7 cpu.
In any case, the problem here is that event expiration is a WMA, so it shouldn't happen concurrently with any other WMA action (like the insertion of new facts). If it is happening, then the locks in the session are not being properly handled.
> NPE when an event expires during evaluation of accumulate when run as fireUntilHalt()
> -------------------------------------------------------------------------------------
>
> Key: DROOLS-70
> URL: https://issues.jboss.org/browse/DROOLS-70
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Mario Fusco
> Assignee: Edson Tirelli
>
> The AccumulateNode.getFirstMatch() throws NPE when some already collected event expires. The problem occurs when thread A is running StatefulKnowledgeSession.fireUntilHalt() while thread B is inserting new events into the session.
> The problem occurs when @expires is defined on the event. The lower the @expires value, the more likely the NPE occurs.
> I added the testEventExpirationDuringAccumulate() to the CepEspTest that reproduces this issue.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list