[jboss-jira] [JBoss JIRA] (DROOLS-1097) Loading Session and running rules re-executes all rules
Artur Kronenberg (JIRA)
issues at jboss.org
Thu Mar 17 12:47:00 EDT 2016
[ https://issues.jboss.org/browse/DROOLS-1097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13178615#comment-13178615 ]
Artur Kronenberg commented on DROOLS-1097:
------------------------------------------
This seems to directly be related to: equalsBehavior="equality"
removing that fixes this.
> Loading Session and running rules re-executes all rules
> --------------------------------------------------------
>
> Key: DROOLS-1097
> URL: https://issues.jboss.org/browse/DROOLS-1097
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.3.0.Final
> Environment: Mac OS 10.10.5, Eclipse Mars Release, Java 1.8, Drools 6.3.0.Final
> Reporter: Artur Kronenberg
> Assignee: Mario Fusco
> Attachments: test-standalone.zip
>
>
> This is possibly directly related to: (or rather that one relates to this one)
> https://issues.jboss.org/browse/DROOLS-1093
> The situation:
> * Create a session with 2 rules. 1 Rule expires facts that are in the working memory by retracting them.
> * Add the ExpiryFact to expire some facts
> * Execute all rules -> X facts get expired
> * dispose the existing session
> * re-load the session
> * without adding more facts to the working memory, run all rules
> * The session re-executes more rules and retracts things from memory
> Now there seem to be 2 problems with this:
> 1. The session does not remember what facts it expired. So it will delete more infos, that are still "somewhere". When re-loading the session from the database, we will see an NPE
> 2. Surely since it already ran the rules against the Expiry fact, it should not run them again.
> I will attach a unit test ExceptionTest#testRulesAreFiredTwice with this bug.
> Let me know if this can be worked around please and/or if there are any more questions.
> Thanks,
> Artur
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list