[
https://issues.jboss.org/browse/JBRULES-3274?page=com.atlassian.jira.plug...
]
Mario Fusco resolved JBRULES-3274.
----------------------------------
Resolution: Done
Fixed implementing an upgradeable ReentrantReadWriteLock (i.e. a lock that allows to
upgrade from a read lock to a write one) and synchronizing the KBase on it.
A BatchCommand triggering a rule which modifies the KBase causes a
deadlock
---------------------------------------------------------------------------
Key: JBRULES-3274
URL:
https://issues.jboss.org/browse/JBRULES-3274
Project: Drools
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:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira