| Summary: | jBPM tests consistently shows potential deadlock for some of the tests | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise SOA Platform 5 | Reporter: | Jiri Pechanec <jpechane> |
| Component: | JBPM - within SOA | Assignee: | tcunning |
| Status: | CLOSED NEXTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5.2.0.ER4 | CC: | fnguyen, kevin.conner |
| Target Milestone: | --- | Keywords: | Regression |
| Target Release: | 5.2.0.ER5 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://jira.jboss.org/jira/browse/SOA-3399 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-10-21 08:21:02 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Jiri Pechanec
2011-09-21 10:55:12 UTC
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 |