jakartaee / batch

The Jakarta Batch project produces the Batch Specification and API.
https://projects.eclipse.org/projects/ee4j.batch
Apache License 2.0
13 stars 18 forks source link

Metrics: Should they be updated in the chunk tran, in coordination with commit or rollback with other updates? How does this affect counts against skip/retry limits? #138

Open follis opened 4 years ago

follis commented 4 years ago

Spec doesn't say when updates to metrics are committed. Seems reasonable that they would commit with the chunk transaction, but if you rollback do the in-memory counts roll back to the start-of-chunk values? They shouldn't because skip and retry-no-rollback counts need to progress...and reads count whether you roll back the results or not. But the spec should say something about it.