[jboss-jira] [JBoss JIRA] Commented: (JBPM-995) CLONE -concurrent job acquirement fails

Ronald van Kuijk (JIRA) jira-events at lists.jboss.org
Wed Aug 15 10:03:01 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBPM-995?page=comments#action_12372284 ] 
            
Ronald van Kuijk commented on JBPM-995:
---------------------------------------

cool... only a strange name for a property.... jbpm.hide...... why not CamelCasing? (me nitpicking :-) )

> CLONE -concurrent job acquirement fails
> ---------------------------------------
>
>                 Key: JBPM-995
>                 URL: http://jira.jboss.com/jira/browse/JBPM-995
>             Project: JBoss jBPM
>          Issue Type: Bug
>          Components: Core Engine
>    Affects Versions: jBPM jPDL 3.2
>            Reporter: Edward Staub
>         Assigned To: Tom Baeyens
>             Fix For: jBPM jPDL 3.2.2
>
>
> 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.
> In reproducing JBPM-983, I ran into Alex's JBPM-974 problem, which has already been closed.  So I cloned it here..  let me know if that was incorrect process.  
> The problem was easy to reproduce, and was easy to predict in the first place.  Alex's fix (sychronize on a static class member around acquireJobs()) works for me as well.  It probably trivially improves performance, by avoiding aborted acquire attempts.
> As noted in JBPM-974, it only causes an erroneous error message being emitted - the code operates correctly.  It also makes debugging other race conditions much more difficult by injecting a lot of noise - they usually show up as stale objects as well.
> I believe the reason the trace is dumped to the log is because it's dumped at ERROR level before it even gets to JBPM, in org.hibernate.event.def.AbstractFlushingEventListener.performExecutions.  So the "catch (StaleStateException e)" doesn't suppress it - the horse has left the barn, the train has left the station, the s--t has already hit the fan - pick your favorite metaphor.

-- 
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

        



More information about the jboss-jira mailing list