[jboss-jira] [JBoss JIRA] (DROOLS-72) Potential memory leak in StatelessKnowledgeSessionImpl#execute when fireAllRules throwing RuntimeException

RH Bugzilla Integration (JIRA) issues at jboss.org
Tue May 6 13:52:56 EDT 2014


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

RH Bugzilla Integration commented on DROOLS-72:
-----------------------------------------------

nwallace <nwallace at redhat.com> changed the Status of [bug 1036126|https://bugzilla.redhat.com/show_bug.cgi?id=1036126] from MODIFIED to ON_QA

> Potential memory leak in StatelessKnowledgeSessionImpl#execute when fireAllRules throwing RuntimeException
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-72
>                 URL: https://issues.jboss.org/browse/DROOLS-72
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 5.5.0.Final
>            Reporter: Trung Nguyen
>            Assignee: Mario Fusco
>             Fix For: 5.5.1.Final, 6.0.0.Alpha9
>
>
> when {{ksession.fireAllRules()}} throws RuntimeException, it cause {{ksession}} never gets released. 
> {code:lang=java} 
> public void execute(Object object) {
>         StatefulKnowledgeSession ksession = newWorkingMemory();
>         ksession.insert( object );
>         ksession.fireAllRules( );
>         ksession.dispose();
>     }
>     public void execute(Iterable objects) {
>         StatefulKnowledgeSession ksession = newWorkingMemory();
>         for ( Object object : objects ) {
>             ksession.insert( object );
>         }
>         ksession.fireAllRules( );
>         ksession.dispose();
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jboss-jira mailing list