Concurrency issue in DynamicBatchingEntityLoader

Description

As discussed on discourse https://discourse.hibernate.org/t/concurrency-issues-since-upgrade-to-5-4-24/5048 there is a concurrency issue in DynamicBatchingEntityLoader due to the sharing of the entityLoaderBuilder.

Environment

None
Fixed

Assignee

Christian Beikov

Reporter

Christian Beikov

Fix versions

Labels

None

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major