Relative Content

Tag Archive for javaparallel-processingspring-batchspring-transactionshikaricp

Spring-Batch JdbcCursorItemReader Connection Timeout When Pool Size Is 1

When creating a partitioned job in spring-batch that uses a JdbcCursorItemReader and a Hikari connection pool with maximumPoolSize=1, the partitioned step always throws CannotCreateTransactionException: Could not open JDBC Connection for transaction at the very beginning of the step execution. This also occurs when gridSize is set to any value greater than the maximumPoolSize.