Bug 973180

Summary: Delete of fact doesn't work when more queries with accumulate are defined
Product: [Retired] JBoss BRMS Platform 6 Reporter: Tomas David <tdavid>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas David <tdavid>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: mfusco, rrajasek, rzhang
Target Milestone: ER2   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:17:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomas David 2013-06-11 12:32:16 UTC
Description of problem:
When more queries are defined with accumulate in drl file and some fact is deleted before start of one query. Query returns all fact including the deleted fact.

Version-Release number of selected component (if applicable):
Drools 6.0.0.Beta3

How reproducible:
Pull request #212 submited in Drools.

Steps to Reproduce:
1. Write a simple test with one KieSession. Insert into kiesession two fact.
2. Make a drl file with two queries. Both queries contain accumulate. Queries should return names of facts.
3. Delete one fact from kiesession. Run query.

Actual results:
Two names are returned.

Expected results:
Only one name should be returned.

Additional info:

Comment 1 Mario Fusco 2013-07-26 08:41:39 UTC
I merged the PR. The provided test now succeeds, so I am assuming this issue has been already fixed.

Comment 2 Tomas David 2013-08-28 07:58:12 UTC
Verified on BRMS 6.0.0.ER2.