Package: | com.ibm.jbatch.tck.tests.jslxml |
Class: | PartitionRerunTests |
Test introduced in TCK Version: 1.1.WORKING
Assertion(s) |
---|
Upon job restart, only FAILED partitions of a FAILED partitioned step are re-executed (COMPLETED partitions are not re-executed). |
Upon job restart, all partitions of a COMPLETED partitioned step with allow-start-if-complete=true are re-executed. |
Section | Version | Citation(s) | Note(s) |
---|---|---|---|
8.2 | 1.0 | ~ allow-start-if-complete: Specifies whether this step is allowed to start during job restart, even if the step completed in a previous execution. | |
10.8.4 | 1.0 | ~ if the step is a partitioned step, only the partitions that did not complete previously are restarted. | ~ See 3.c. |
Class Name | Method Names | Note(s) |
---|
Link(s) |
---|
https://java.net/bugzilla/show_bug.cgi?id=6494 |
Strategy |
---|
In the first job execution, the test fails in one partition and passes in the other two while running through step1. In the second execution, check that only the failed partition in step1 is re-executed; complete step1 and then fail in step2. In the third execution, since step1 has previously completed and allow-start-if-complete=true, we verify that all three partitions in step1 are re-executed. |
Comment(s) |
---|
The spec doesn't explicitly describe this combination of partitions plus allow-start-if-complete="true", but it seems the only valid interpretation. |