]
Mario Fusco updated DROOLS-2646:
--------------------------------
Story Points: 5
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.