Skip to content

Spring boot 3.1.0 Hibernate batch_size property regression #35887

@christophers88

Description

@christophers88

When enabling spring.jpa.properties.hibernate.jdbc.batch_size there's a regression between spring boot 3.0.7 and 3.1.0

You can find the example project attached. When running the included test you can find in the logs:
PreparedStatementDetails did not contain PreparedStatement on #releaseStatements : update room set version=? where id=? and version=?

When disabling the spring.jpa.properties.hibernate.jdbc.batch_size property, the error goes away.

This worked fine in spring boot 3.0.7 with the property enabled.

This issue causes some bugs in our project because sometimes an update query is not flushed to the database (without any exception thrown). It worked completely fine in 3.0.7 and also in 3.1.0 with the batch_size property disabled.

reproduce-batch-size-issue-example.zip

Metadata

Metadata

Assignees

Labels

for: external-projectFor an external project and not something we can fixstatus: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions