Commit ef3eb49
committed
Replace CopyOnWriteArraySet with synchronized List for steps
Change stepExecutions collection in `JobExecutionEvent` from
`CopyOnWriteArraySet` to `Collections.synchronizedList(new ArrayList<>())`
to preserve the order of step executions. Sets do not maintain insertion
order, which can cause issues when processing or displaying step execution
history in the correct sequence.
This change ensures that step executions are stored and retrieved in the
order they were added, which is critical for understanding job execution
flow and debugging batch processes.
Re-enable previously disabled tests that verify step execution handling
and auto-configuration behavior. Remove unused imports and bean
definitions that are no longer needed after the Spring Batch 6.x
migration.1 parent c319ed6 commit ef3eb49
File tree
4 files changed
+1
-14
lines changed- spring-cloud-task-batch/src/test/java/org/springframework/cloud/task/batch/configuration
- spring-cloud-task-stream/src
- main/java/org/springframework/cloud/task/batch/listener/support
- test/java/org/springframework/cloud/task/batch/listener
4 files changed
+1
-14
lines changedLines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
| |||
99 | 97 | | |
100 | 98 | | |
101 | 99 | | |
102 | | - | |
103 | 100 | | |
104 | 101 | | |
105 | 102 | | |
| |||
133 | 130 | | |
134 | 131 | | |
135 | 132 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | 133 | | |
142 | 134 | | |
143 | 135 | | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | | - | |
| 46 | + | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
77 | | - | |
78 | 76 | | |
79 | 77 | | |
80 | 78 | | |
| |||
119 | 117 | | |
120 | 118 | | |
121 | 119 | | |
122 | | - | |
123 | 120 | | |
124 | 121 | | |
125 | 122 | | |
| |||
0 commit comments