Hide Forgot
project_key: SOA Look at the test report in the link https://hudson.qa.jboss.com/hudson/view/SOA-Release/job/soa-jbpm-db-openjdk16/73/testReport/ There are four tests that fail consistently across all supported databases org.jbpm.jbpm2094.JBPM2094Test.testJobExecutorDeadlock org.jbpm.jbpm2787.JBPM2787Test.testProcessInstancesStuckInJoin org.jbpm.jbpm983.JBPM983Test.testConcurrentJobs org.jbpm.job.executor.JobExecutorDbTest.testJobExecutor It seems that there can be a deadlock inside the code. If the issue is related to JobExecutor only then we can lower the priority as JobExecutor is not used in SOA-P. The tests are passing with H2 database.
Affects Testing: Added: [Regression]
This is not a deadlock in the jBPM code, rather it is a problem with the way in which the tests are being executed. What appears to be happening is that the JobExecutorThread executes the job and catches an exception, causing it to attempt to save the information and reschedule. Within the saveJobExecution method it attempts to calculate the waitPeriod as follows int waitPeriod = jobExecutor.getRetryInterval() / 2; waitPeriod += random.nextInt(waitPeriod) ; however the retry interval of the jobExecutor is 0. This causes the Random.nextInt to throw an IllegalArgumentException and stall the test. The tests are obtaining their configuration from the ESB configuration, specifically jbpm.esb/config/jobexecutor/jbpm.cfg.xml.config, which does not specify the retryInterval. In order to fix this we must simply add the following to the end of the jbpm.job.executor configuration <property name="retryInterval"><int value="4000" /></property> <!-- 4 seconds -->
Link: Added: This issue depends JBESB-3696
Added retryInterval. new-host-3:services cunningt$ svn commit Sending services/jbpm/src/main/resources/config/hornetqscheduler/jbpm.cfg.xml.config Sending services/jbpm/src/main/resources/config/jmsscheduler/jbpm.cfg.xml.config Sending services/jbpm/src/main/resources/config/quartzscheduler/jbpm.cfg.xml.config Sending services/jbpm/src/main/resources/jbpm.cfg.xml Transmitting file data .... Committed revision 37523.
Verified in ER5