Revisit transactional advice around job repository methods

Open
#4,956 0 comments 0 reactions 1 assignee View on GitHub

@fmbenhassine is already working on this.

Since Aug 19, 2025.

Assessment

This issue has not been assessed yet.

Description

in: core status: for-internal-team type: enhancement

The transactional proxy created around the job repository in AbstractJobRepositoryFactoryBean is not accurate/optimized:

https://github.com/spring-projects/spring-batch/blob/d95397faf023ee3293ee10b41977231734a0f5d1/spring-batch-core/src/main/java/org/springframework/batch/core/repository/support/AbstractJobRepositoryFactoryBean.java#L198-L208

For example, some methods (like get* and find*) could be marked as read-only.

v6 is a good opportunity to revisit and optimise this.

Dominant language
Java
Stars
3k
Forks
2.5k
Avg merge
6d 53m
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from spring-projects/spring-batch

All issues in spring-projects/spring-batch

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.