[
https://issues.jboss.org/browse/WFLY-4390?page=com.atlassian.jira.plugin....
]
Cheng Fang edited comment on WFLY-4390 at 2/28/15 10:54 AM:
------------------------------------------------------------
Fixed in project JBeret:
https://github.com/jberet/jsr352/commit/eed55070a42bbd15240e14b638fb12ea8...
Also tested with attached batch-restartable.zip test against WildFly 9 snapshot.
{code}
2015-02-28 08:21:37,154 INFO [com.example.batch.UnrestartableBatchTest] (default task-1)
$$$ start(): jobid: 58, status: FAILED
2015-02-28 08:21:37,156 ERROR [stderr] (default task-1)
javax.batch.operations.JobRestartException: JBERET000646: The job with name:
unrestartable-job, execution id: 58, is configured not restartable
2015-02-28 08:21:37,156 ERROR [stderr] (default task-1) at
org.jberet.operations.JobOperatorImpl.restart(JobOperatorImpl.java:210)
2015-02-28 08:21:37,156 ERROR [stderr] (default task-1) at
com.example.batch.UnrestartableBatchTest.testRestartAfterException(UnrestartableBatchTest.java:57)
{code}
was (Author: cfang):
Fixed in project JBeret:
https://github.com/jberet/jsr352/commit/eed55070a42bbd15240e14b638fb12ea8...
Also tested with attached batch-restartable.zip test against WildFly 9 snapshot.
restartable=false bach job can be restarted
-------------------------------------------
Key: WFLY-4390
URL:
https://issues.jboss.org/browse/WFLY-4390
Project: WildFly
Issue Type: Bug
Components: Batch
Affects Versions: 8.2.0.Final
Reporter: Takashi Nishigaya
Assignee: Cheng Fang
Attachments: batch-restartable.zip
The batch job defined with restartable=false must not be restartable, after failed or
stopped.
GlassFish 4.1 results in the following:
[2015-02-26T19:56:34.860+0900] [glassfish 4.1] [SEVERE] [] [] [tid: _ThreadID=25
_ThreadName=Thread-9] [timeMillis: 1424948194860] [levelValue: 1000] [[
javax.batch.operations.JobRestartException: javax.batch.operations.JobRestartException:
Job Restartable attribute is false, Job cannot be restarted.
But WildFly tries to execute the stopped or failed job.
Please check the attached test case.
wildfly:
$ mvn clean test -P wildfly-managed (or -P wildly-remote)
glassfish:
$ glassfish4/bin/asadmin start-domain
$ mvn clean test -P glassfish-remote
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)