Support for new MySQL 8 error code 3572 #23972
Labels
in: data
Issues in data modules (jdbc, orm, oxm, tx)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
MySQL 8 exposes a new error code for lock acquisition failures in case of NOWAIT: namely, 3572 which we can translate to
CannotAcquireLockException
. On a specific note, this happens to be inconsistent with MariaDB which exposes the already supported code 1205 in such a scenario, so from that perspective we're closing a gap in our support between the two database variants.For some context:
https://falseisnotnull.wordpress.com/2018/04/23/mysql-vs-mariadb-wait-nowait-skip-locked/
https://hibernate.atlassian.net/browse/HHH-13698
The text was updated successfully, but these errors were encountered: