Bug 726620 - No difference between reactive and pull query
Summary: No difference between reactive and pull query
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRE (Expert, Fusion)
Version: BRMS 5.2.0-ER1
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: BRMS 5.2.0.GA
Assignee: Mark Proctor
QA Contact:
URL:
Whiteboard:
Depends On: 732726
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-29 08:23 UTC by Tomas Schlosser
Modified: 2025-02-10 03:14 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:14:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Java class and DRL file to reproduce this bug (1.37 KB, application/x-zip-compressed)
2011-07-29 08:23 UTC, Tomas Schlosser
no flags Details

Description Tomas Schlosser 2011-07-29 08:23:54 UTC
Created attachment 515840 [details]
Java class and DRL file to reproduce this bug

Description of problem:
When using reactive query (one without ?) the result is the same as with pull query (starting with ?) therefore the result is dependant on the ordering of inserted facts. To reproduce it run the test included.
  
Actual results (with BRMS-5.2.0-ER1):
Run#1 - insert place first

test1: ?contains1
  []

test2: contains1
  []

test3: ?contains2
  []

test4: contains2
  []


Run#2 - insert place last

test1: ?contains1
  [apple, table, fork, box, sweets]

test2: contains1
  [apple, table, fork, box, sweets]

test3: ?contains2
  [apple, table, fork, box, sweets]

test4: contains2
  [apple, table, fork, box, sweets]



Expected results (with Drools-5.3.0-SNAPSHOT):
Run#1 - insert place first

test1: ?contains1
  []

test2: contains1
  [apple, table]

test3: ?contains2
  []

test4: contains2
  [apple, table, fork, box]


Run#2 - insert place last

test1: ?contains1
  [apple, table, fork, box, sweets]

test2: contains1
  [apple, table, fork, box, sweets]

test3: ?contains2
  [apple, table, fork, box, sweets]

test4: contains2
  [apple, table, fork, box, sweets]

Comment 1 Mark Proctor 2011-09-19 08:02:53 UTC
This was fixed as part of all the BC fixes, see Bug732726.

Comment 2 Lukáš Petrovický 2011-09-19 08:06:47 UTC
Sending to QA.

Comment 3 Tomas Schlosser 2011-09-21 07:20:32 UTC
This bug is fixed in BRMS-5.2.0.ER4

Comment 8 Red Hat Bugzilla 2025-02-10 03:14:05 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


Note You need to log in before you can comment on or make changes to this bug.