You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@grails.apache.org by GitBox <gi...@apache.org> on 2026/06/27 17:31:00 UTC
[GH] (grails-core/fix/gorm-api-registration-scaling): Workflow run "Code Style" is working again!
The GitHub Actions job "Code Style" on grails-core.git/fix/gorm-api-registration-scaling has succeeded.
Run started by GitHub user borinquenkid (triggered by borinquenkid).
Head commit for run:
83041edf9dfbf3e79fc60815932ed6f5c83affaa / Walter Duque de Estrada <wb...@mac.com>
test: add unit tests for DATABASE and SCHEMA per-tenant session routing fixes
Cover the two bugs fixed in the previous commit:
1. GrailsHibernateTemplate.executeWithNewSession TSM bug (H5 + H7):
- H5: standalone spec; manually pre-binds a ConnectionHolder for the
DataSource without a matching SessionFactory holder in TSM, then
verifies executeWithNewSession completes without "Already value bound".
- H7: uses the outer transaction's active synchronisation; a secondary
local datastore triggers SQLErrorCodesFactory to auto-bind its DS to
TSM, replicating the production trigger without manual bindResource.
2. GormEnhancer.registerEntity stale API eviction (H5 + H7):
- H5: calls addTenantForSchema('tenantA') twice (H5 has no idempotency
guard, so the second call re-creates the child and re-registers
entities); verifies stale lazily-cached APIs for tenantA are evicted.
- H7: creates a second SCHEMA datastore for the same entity class without
closing the first; verifies that SchemaTenantGormEnhancer.registerEntity
evicts stale lazily-cached tenant APIs on the new datastore's
registration pass.
Co-Authored-By: Claude Sonnet 4.6 <no...@anthropic.com>
Report URL: https://github.com/apache/grails-core/actions/runs/28296417246
With regards,
GitHub Actions via GitBox