Skip to content

Mssql java hibernate locks tables #3414

@teuno

Description

@teuno

The Issue is:
-When running the application (spring data mcr.microsoft.com/mssql/server:2019-CU8-ubuntu-16.04) with a docker container everything worked as expected.
-When running the application with testcontainers the tables stayed locked (using the same image all the time).
-When removing the crudRepository from Spring Data in the test and using the raw entity manager the tables locked (the test could pass because of the persistence context of hibernate).
-When using raw JDBC the test worked fine.

I'm using Junit 5, testcontainerVersion 1.14.3 and Hiberante core 5.4.21.Final (spring boot version2.3.4.RELEASE).

I don't really know if this is an Hiberante or a testcontainers issue, because Hibernate did work normally with docker, but started locking tables with when testcontainers got involved.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolution/waiting-for-infoWaiting for more information of the issue author or another 3rd party.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions