Follow-on locking WARN message logged when query LockMode is NONE

Description

n our case we have a huge amount of logging exactly due to a query like the one below. The shouldBeLocked parameter is false in 99.99% of the cases, yet we create a Query with LockMode.NONE and we get 2 warnings in the logs HHH000445 and HHH000444 .

Environment

None

Activity

Show:
Victor Bucutea
February 11, 2016, 1:19 PM

soo .. To fix this I can make a PR for https://github.com/hibernate/hibernate-orm ?

Andrea Boriero
February 11, 2016, 2:57 PM

Hi ,
does this issue affects 5.0.7 or 5.1 as well?

Andrea Boriero
February 11, 2016, 3:28 PM

I checked and yes it affect 5.07 and 5.1.

yes you can submit a PR at https://github.com/hibernate/hibernate-orm

Thanks

Fixed

Assignee

Andrea Boriero

Reporter

Victor Bucutea

Fix versions

Labels

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure