[jboss-jira] [JBoss JIRA] Commented: (JBRULES-3075) window:length windows retaining events when they shouldnt

Radai Rosenblatt (JIRA) jira-events at lists.jboss.org
Thu Jun 9 09:14:59 EDT 2011


    [ https://issues.jboss.org/browse/JBRULES-3075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607468#comment-12607468 ] 

Radai Rosenblatt commented on JBRULES-3075:
-------------------------------------------

im not sure how this relates to https://issues.jboss.org/browse/JBRULES-2881 , since 2881 is marked as fixed in the same version my test is failing for.

> window:length windows retaining events when they shouldnt
> ---------------------------------------------------------
>
>                 Key: JBRULES-3075
>                 URL: https://issues.jboss.org/browse/JBRULES-3075
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-core (fusion)
>    Affects Versions: 5.2.0.CR1
>         Environment: win64, jdk 6u24
>            Reporter: Radai Rosenblatt
>            Assignee: Mark Proctor
>         Attachments: drools length window bug.zip
>
>
> using the following DRL:
> package contrived.example
> import contrived.example.EventWithTimestamp
> declare EventWithTimestamp
>     @role(event)
> 	@duration( duration )
>     @timestamp( timestamp )
> end
> rule "no event in window"
> when
>     not EventWithTimestamp (someProp=="whatever") over window:length(3) from entry-point "Event Stream"
> then
>     System.err.println("retract");
> end
> if we start with an initial matching (someProp=="whatever") event and a fire a long sequence of non-matching events:
> {"something else", "something else" ... "something else"}
> the rule should fire sometime into the long chain of "something else" events (it should fire after the 3rd such event).
> in practice the rule never fires. worse, it also retains all the events in memory ehrn it should only keep the last 3.
> to reproduce the issue, simply build the attached maven project (mvn clean install)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list