Skip to content

Datasource initialisation with JPA schema configured in deferred mode happens asynchronously #22852

Closed
@wikisamuel

Description

@wikisamuel

When upgrading from Spring Boot 2.2.9 to 2.3.0, unit tests cannot handle large datasets anymore.

When logging with a debug level, we see extShutdownHook drops tables before the end of the insertions, hence the test fails.

Here is a minimal reproducible example : it works with 2.2.9, but when upgrading to 2.3.0 we can see 10k rows seems too much.

The problem still exist in the last version (2.3.2).

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions