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

Bug 874119

Summary: NPE during execution of SlidingTimeWindow$BehaviorExpireWMAction with fireUntilHalt()
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Marek Winkler <mwinkler>
Component: BRE (Expert, Fusion)Assignee: Nobody <nobody>
Status: CLOSED UPSTREAM QA Contact:
Severity: urgent Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.1   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:21: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
NPE complete stacktrace. none

Description Marek Winkler 2012-11-07 14:49:00 UTC
Created attachment 640113 [details]
NPE complete stacktrace.

Description of problem:

When a StatefulKnowledgeSession.fireUntilHalt() is running in thread A, and thread B inserts a moderate volume of events into a time window, a NPE occurs in SlidingTimeWindowComparator.compare.

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

5.3.1

How reproducible:

Will attach link to pull request with test case.

Steps to Reproduce:
1. Run org.drools.integrationtests.FireUntilHaltTimeWindowTest
  
Actual results:
NPE shows up (see attachment for the complete stack trace).

Expected results:
The events are processed by the engine without an exception.

Additional info:

Looks like synchronization issue when events expire from a time window and another event is concurrently being inserted into the window.

This bug actually prevents using sliding time windows when running in fireUntilHalt() mode.

Comment 1 Marek Winkler 2012-11-07 15:02:14 UTC
Pull request with reproducer test case: https://github.com/droolsjbpm/drools/pull/162

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