[jboss-jira] [JBoss JIRA] (WFLY-3808) PartitionPlan.getThreads() returning zero value causes batch job not be started
Cheng Fang (JIRA)
issues at jboss.org
Fri Mar 20 09:06:19 EDT 2015
[ https://issues.jboss.org/browse/WFLY-3808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cheng Fang resolved WFLY-3808.
------------------------------
Fix Version/s: 9.0.0.Alpha1
Resolution: Done
> PartitionPlan.getThreads() returning zero value causes batch job not be started
> -------------------------------------------------------------------------------
>
> Key: WFLY-3808
> URL: https://issues.jboss.org/browse/WFLY-3808
> Project: WildFly
> Issue Type: Bug
> Components: Batch
> Affects Versions: 8.1.0.Final
> Environment: Windows 7 Home Premium Service Pack 1 64-bit + JDK8u11 + WildFly 8.1.0 Final
> Reporter: Ari Silvan
> Assignee: Enrique González Martínez
> Fix For: 9.0.0.Alpha1
>
>
> If you define a batch job to be divided to multiple partitions and write a PartitionMapper returning a PartitionPlanImpl object but don't override getThreads method, which means getThreads returns zero meaning thread count should be equal to partition count, but the batch job doesn't start.
> See http://docs.oracle.com/javaee/7/api/javax/batch/api/partition/PartitionPlan.html#setThreads(int)
> In GlassFish this works as expected: if getThreads is not overridden (thus returning zero), batch job is started in as many threads as there are partitions.
> See steps to reproduce for further details.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the jboss-jira
mailing list