[jboss-jira] [JBoss JIRA] (DROOLS-2646) KieContainer#updateToVersion removing rules: logically inserted objects not removed correctly

Mario Fusco (Jira) issues at jboss.org
Wed Nov 28 12:03:01 EST 2018


     [ https://issues.jboss.org/browse/DROOLS-2646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco resolved DROOLS-2646.
---------------------------------
    Resolution: Done


Fixed by https://github.com/kiegroup/drools/commit/221cb15cde3ab5ea7388281d2c96158117ee3e19

> KieContainer#updateToVersion removing rules: logically inserted objects not removed correctly
> ---------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-2646
>                 URL: https://issues.jboss.org/browse/DROOLS-2646
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 7.7.0.Final
>            Reporter: Olga Rodionova
>            Assignee: Mario Fusco
>            Priority: Major
>         Attachments: RuleRemovalABTest.java, SimpleRuleAB.drl
>
>
> Consider two rules which have one of the patterns in common, each of which logically inserts an object in the RHS. Build the KieModule from the KieFileSystem including these rules, create the KieContainer and the KieSession. Insert the facts. Everything works fine. 
> Create a new KieModule excluding these rules from the KieFileSystem, update the KieContainer. Expect the logically inserted facts to be retracted, as the rules which trigged their creation is no longer present. Turns out that is true for the facts inserted by the first rule, but not for the second one: the facts remain in the working memory.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list