Skip to content

Fix restart aggregation when remote partitions are already completed#5318

Open
answndud wants to merge 1 commit intospring-projects:mainfrom
answndud:fix/remote-partition-aggregator-restart-5158
Open

Fix restart aggregation when remote partitions are already completed#5318
answndud wants to merge 1 commit intospring-projects:mainfrom
answndud:fix/remote-partition-aggregator-restart-5158

Conversation

@answndud
Copy link

@answndud answndud commented Mar 5, 2026

Summary

  • Return completed partition executions from SimpleStepExecutionSplitter on restart so the manager can aggregate them.
  • Update AbstractPartitionHandler to skip re-executing already completed partitions while still returning them in the final results.
  • Add coverage in splitter/handler/partition-step tests for restart aggregation with completed partitions.

Testing

  • mvn -pl spring-batch-core -Dtest=TaskExecutorPartitionHandlerTests,SimpleStepExecutionSplitterTests,PartitionStepTests test
  • In this local environment, compilation fails before tests due NullAway JSpecify requirements (JDK 22+ or -XDaddTypeAnnotationsToSymbol=true).

Closes #5158

Signed-off-by: MJY <jmoon0227@gmail.com>
@answndud answndud force-pushed the fix/remote-partition-aggregator-restart-5158 branch from 25a05bc to 2e63c8c Compare March 13, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Aggregator of remote partitions is not passed all worker steps upon controller restart

1 participant