Bug 1327202

Summary: Drools engine gets stuck if evaluating a query while fireUntilHalt is running
Product: [Retired] JBoss BRMS Platform 6 Reporter: Marek Winkler <mwinkler>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED EOL QA Contact: Marek Winkler <mwinkler>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.3.0CC: kverlaen, mfusco, Xin.guo
Target Milestone: CR1Keywords: Regression
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1328048 (view as bug list) Environment:
Last Closed: 2020-03-27 19:44:22 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:
Bug Depends On:    
Bug Blocks: 1328048    
Attachments:
Description Flags
Thread dump
none
zip file with a unit test that i used to reproduce issue on the lastest snapshot
none
thread dump of the hanging still occuring on latest snapshot. none

Description Marek Winkler 2016-04-14 12:39:25 UTC
Created attachment 1147232 [details]
Thread dump

Description of problem:

Drools engine gets stuck (thread dump attached) while evaluating a query when fireUntilHalt is running. Please see the reproducer in PR.

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

How reproducible:
always

Steps to Reproduce:
1. run mvn clean test -Dtest=QueryCepFireUntilHaltTest in drools-compiler from the PR

Actual results:
The test hangs.

Expected results:
The test passes.

Comment 1 Marek Winkler 2016-04-14 12:42:35 UTC
PR with reproducer: https://github.com/droolsjbpm/drools/pull/734

Comment 2 Marek Winkler 2016-04-14 13:02:38 UTC
The freeze does not occur on 6.3.x branch (please note that test method withResultTest fails - not sure if this would be expected?).

The freeze occurs on 6.4.x and master branches.

Comment 4 Mario Fusco 2016-04-18 09:53:57 UTC
Fixed on master by https://github.com/droolsjbpm/drools/compare/1cf6f3d...626009a

Comment 5 Mario Fusco 2016-04-18 15:58:08 UTC
*** Bug 1328048 has been marked as a duplicate of this bug. ***

Comment 6 Mario Fusco 2016-04-18 16:06:13 UTC
Cherry-picked to 6.4.x branch with https://github.com/droolsjbpm/drools/commit/8f8275fc1

Comment 7 Marek Winkler 2016-04-27 10:50:56 UTC
Verified in BRMS 6.3.0 CR1.

Comment 8 Xin Guo 2016-07-15 14:39:56 UTC
Created attachment 1180176 [details]
zip file with a unit test that i used to reproduce issue on the lastest snapshot

Comment 9 Xin Guo 2016-07-15 14:41:50 UTC
Created attachment 1180177 [details]
thread dump of the hanging still occuring on latest snapshot.

Hi, I'm experiencing this bug again, or it might be a different bug. The repro steps are similar. I call getQueryResults on the RHS of a rule, and the rule hangs. I attached a zip with a repro, and Thread dump. I'd make a new bug in bugzilla, but I can't seem to make new bugs in BRMS 6.

Comment 10 Marek Winkler 2016-07-18 07:23:27 UTC
Xin Guo, 

thanks for reporting the problem. The reason why you could not create a new Bug in Bugzilla is that we moved to JIRA [1]. Please create a new issue there. 

Thanks again!

[1] https://issues.jboss.org/projects/RHBRMS