The GitHub Actions job "CI" on grails-core.git/feat/gorm-lock-latest has failed.
Run started by GitHub user jdaugherty (triggered by jdaugherty).

Head commit for run:
ba8a179899abe5f5e5618feb1e7f54e1a9fe5087 / James Daugherty 
<[email protected]>
feedback: bind the unproxied target when locking a union-mapped row on 
Hibernate 7

For a tablePerConcreteClass hierarchy the pre-refresh lock query names the
instance's concrete entity, so a root-typed proxy found in the session by
the static lock(id, refresh: true) form could not be bound to its parameter
and failed with HibernateSystemException before anything was locked. The
query now binds the unproxied target, which the concrete-entity lookup had
already initialized.

recordLockMode only sets the entity entry when the requested mode is
stronger than the one already recorded, matching Hibernate's own lock
upgrade, so a weaker locked refresh in the same transaction no longer
downgrades what getCurrentLockMode reports.

Both specs gain a feature that locks the row behind an initialized
root-typed proxy through the root of the union and joined hierarchies, and
a sequence feature asserting that a locked refresh never weakens a held
lock. The Hibernate 7 guide NOTE now describes the union limit for every
form that locks through the hierarchy root.

Report URL: https://github.com/apache/grails-core/actions/runs/35269131832

With regards,
GitHub Actions via GitBox

Reply via email to