Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1049571

Summary: RETE-OO: Queries return too few results
Product: [Retired] JBoss BRMS Platform 6 Reporter: Marek Winkler <mwinkler>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Winkler <mwinkler>
Severity: urgent Docs Contact:
Priority: high    
Version: 6.0.0   
Target Milestone: CR1   
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:20:05 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:
Attachments:
Description Flags
Maven project with reproducer none

Description Marek Winkler 2014-01-07 19:20:35 UTC
Created attachment 846818 [details]
Maven project with reproducer

Description of problem:

When using RETE-OO, queries return less results than expected, please see the attached reproducer for details. The same tests pass when using PHREAK.

I have checked that the tests do not rely on the order of returned facts which can differ in PHREAK and RETE-OO.

Version-Release number of selected component (if applicable):

BRMS 6.0.0 ER7
Drools 6.0.1-SNAPSHOT

How reproducible:

Please run the tests from the attached maven project with reproducer:

mvn clean test -Dtest=QueryBCTest -Ddrools.ruleEngine=reteoo

There are three test methods which fail, please check them all.

Actual results:

The tests fail.

Expected results:

The tests pass.

Comment 2 Mario Fusco 2014-01-08 11:51:59 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/dacb3774f

Comment 3 Marek Winkler 2014-01-23 17:40:38 UTC
Verified on BRMS 6.0.0 CR1.