Bug 999360

Summary: Rule with agenda-group and other rule with higher salience make test freeze
Product: [Retired] JBoss BRMS Platform 6 Reporter: Tomas David <tdavid>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas David <tdavid>
Severity: medium Docs Contact:
Priority: urgent    
Version: 6.0.0   
Target Milestone: ER5   
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:47 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:

Description Tomas David 2013-08-21 08:37:23 UTC
Description of problem:
When focus is set on specific agenda-group and other rule has higher salience, test freezes. DeclarativeAgendaOption must be enabled.

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

How reproducible:
Pull request #237 submited in Drools.

Steps to Reproduce:
1. Make drl file with three rules. First rule has the highest salience and it set focus on specific agenda-group. Second rule is in the specific agenda-group. Third rule has salience higher than second rule, but it has lower salience than first rule.
2. Write a simple test with KieBase which have DeclarativeAgendaOption enabled.
3. Run test.

Actual results:
Test freezes.

Expected results:
Rules should fire in this order: first, second, third.

Additional info:

Comment 2 Mario Fusco 2013-10-03 14:01:48 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/1db3ccc42

Comment 6 Tomas David 2013-12-04 08:28:18 UTC
Verified on BRMS 6.0.0.ER5.