[
http://jira.jboss.com/jira/browse/JBPM-974?page=comments#action_12363875 ]
Alexander Schlett commented on JBPM-974:
----------------------------------------
Ok, if it is normal behavior to try to acquire a job and throw an Exception if that fails,
then indeed there's no problem. Because JobExecutor threads are started
simultaneously they also simultaneously try to acquire jobs. I changed that by
synchronizing the acquirement on a static variable, so that only one JobExecutor thread
gets the job (they acquire jobs now one by one). This works well for us and no Exceptions
show up. Of course this works in a single VM only, in a cluster there still could be a
collision. The point is, an Exception should indicate an error and not pollute the logs if
it's not an error.
concurrent job acquirement fails
--------------------------------
Key: JBPM-974
URL:
http://jira.jboss.com/jira/browse/JBPM-974
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Affects Versions: jBPM jPDL 3.2
Reporter: Alexander Schlett
Assigned To: Tom Baeyens
when more than 1 job executor thread is configured and concurrent async nodes are to be
executed, it results in hibernate exceptions.
reason: job acquirement is not synchronized well, resulting in multiple threads trying to
work on the same job.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira