[jboss-jira] [JBoss JIRA] (JBRULES-3274) A BatchCommand triggering a rule which modifies the KBase causes a deadlock

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Fri May 31 12:05:54 EDT 2013


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

RH Bugzilla Integration commented on JBRULES-3274:
--------------------------------------------------

Mario Fusco <mfusco at redhat.com> made a comment on [bug 969467|https://bugzilla.redhat.com/show_bug.cgi?id=969467]

I backported to 5.3.x the Fix for JBRULES-3274 that I developed in the 5.4.x.

Also I tried to reproduce the problem with this test

https://github.com/droolsjbpm/drools/blob/5.3.x/drools-compiler/src/test/java/org/drools/integrationtests/MultithreadTest.java#L86

but I couldn't. I think that this test case is somewhat meaningful anyway so I decided to the codebase.
                
> A BatchCommand triggering a rule which modifies the KBase causes a deadlock
> ---------------------------------------------------------------------------
>
>                 Key: JBRULES-3274
>                 URL: https://issues.jboss.org/browse/JBRULES-3274
>             Project: JBRULES
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Mario Fusco
>            Assignee: Mario Fusco
>
> Create a BatchCommand containing an insert and a fireAll. Make that inserted fact activate a rule which modifies the KBase, e.g. adding another rule on the fly.
> When executing the batch command, the thread will acquire a read lock. The kBase modification will then require a write lock, causing the deadlock.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list