github spring-projects/spring-batch v6.0.2

13 hours ago

⭐ New features

  • Add ZonedDateTime and OffsetDateTime support to JobParametersConverter #5178

🐞 Bug fixes

  • Compatibility issues between v5 and v6 when Migrating from CommandLineJobRunner to CommandLineJobOperator #5227
  • MongoStepExecutionDao.countStepExecutions() ignores stepName parameter #5220
  • OptimisticLockingFailureException due to race condition in graceful shutdown #5217
  • ChunkOrientedStep#doExecute updates the StepExecution outside of the chunk transaction boundary. #5199
  • Jackson2ExecutionContextStringSerializer fails to serialize job parameters with JobStep #5191
  • StepContribution counters are not thread-safe during parallel chunk processing #5188
  • ScopeNotActiveException with @StepScope ItemProcessor in Multi-threaded ChunkOrientedStep #5183
  • ChunkOrientedStep updates ExecutionContext even when a chunk fails, leading to data loss on restart #5182
  • MetaDataInstanceFactory default values cause StepContext collision in StepScopeTestUtils when @SpringBatchTest is active #5181
  • Wrong database migration to spring-batch 6.x for DB2LUW #5166
  • OptimisticLockingFailureException in JobRepositoryTestUtils.removeJobExecutions() since Spring Batch 5.2.3 #5161
  • The implementation of jumpToItem(int itemLastIndex) in AbstractPaginatedDataItemReader does not handle restart behavior correctly. #5136
  • Incorrect resource cleanup order in AbstractCursorItemReader#doClose leads to inconsistent behavior #5109
  • Intermittent OptimisticLockingFailureException when starting job using jobOperator.start() with asyncTaskExecutor #5106
  • ClosedChannelException when using StaxEventItemWriter in combination with MultiResourceItemWriter #5098
  • WriteConflict in MongoSequenceIncrementer during parallel job executions #4960

🚀 Enhancements

  • Use Spring Framework's CollectionUtils to create HashSet/HashMap #5175
  • Remove redundant assert in StoredProcedureItemReader #5119

📔 Documentation

  • Fix typo in whatsnew.adoc and in integration tests #5207
  • Clarify ChunkListener changes in v6 #5226
  • Incorrect documentation about concurrent steps in v6 #5228
  • correct JobOperatorFactoryBean sample code #5103

🔨 Tasks

  • Update project template in issue reporting guide #5212

🆙 Dependency Upgrades

Spring Framework: 7.0.3
Spring Integration: 7.0.2
Spring AMQP: 4.0.2
Spring Kafka: 4.0.2
Spring Data: 4.0.2
Micrometer: 1.16.2

❤️ Contributors

Thank you to all the contributors who worked on this release:

@wocks1123, @thswlsqls, @xeounxzxu, @LeeHyungGeol, @KMGeon, @HongYeseul, @banseok1216, @quaff, and @songhees

Don't miss a new spring-batch release

NewReleases is sending notifications on new releases.