Repository navigation
Fix flaky WhereQueryClosureCaptureSpec: key AstPropertyResolveUtils cache by ClassNode identity - #16034
Conversation
…ache by ClassNode identity
WhereQueryClosureCaptureSpec ("generated closure constructors are identical
across compilations" and "association criteria closures capture only the
variables they reference") was ~2% flaky in CI with no hard failures on the
same commit - a classic sign of shared, racy static state rather than a test
bug.
Root cause: AstPropertyResolveUtils.cachedClassProperties is a static,
process-wide java.util.HashMap that the where{} query transform
(DetachedCriteriaTransformer) consults to resolve a domain class's property
names/types. Two problems compounded:
1. Not thread-safe. Gradle runs many spec classes concurrently within one
JVM/fork, so concurrent put()/resize on a plain HashMap can corrupt its
internal structure - a well known source of nondeterministic, rare
failures that reproduce inconsistently between reruns.
2. Keyed by name (ClassNode#getName()), and ClassNode#equals()/hashCode()
themselves compare by name too. Two distinct ClassNode instances that
share a name - e.g. the same source compiled twice into separate
GroovyClassLoaders, as WhereQueryClosureCaptureSpec's "identical across
compilations" test does on purpose, or any two test fixtures compiled
without a package - collide on the same cache entry. Whichever
compilation populates the entry first "wins", so the second compilation's
property resolution (and therefore the generated closure's captured
variables) can silently depend on stale data from an unrelated
ClassNode/classloader.
Fix: back the cache with an IdentityHashMap (keys compared by `==`, not
`equals()`), wrapped in Collections.synchronizedMap for thread safety. This
eliminates both the corruption hazard and the name-collision hazard
outright, since two different ClassNode instances can never share an entry
regardless of what they're named. Also stopped publishing the new entry into
the shared map until it is fully populated, so a concurrent reader can never
observe a partially-built entry.
Note: the cache already keyed by ClassNode#getName() (the fully-qualified
name), not a bare simple name as initially suspected - but for classes
compiled without a package (common in tests and generated sources), the
qualified name *is* the simple name, so name-based keying could not have
fixed the collision this spec's own "compile the same source twice" test
depends on. Identity-based keying removes the ambiguity entirely instead of
narrowing it.
Added AstPropertyResolveUtilsSpec, a new unit test that builds two distinct
ClassNode instances with the same unqualified name and different property
sets, and proves each resolves and caches its own properties independent of
the other - directly reproducing and proving the fix for the collision,
without relying on reruns of the flaky spec to catch it.
Verified: :grails-datamapping-core:test passes in full, including
WhereQueryClosureCaptureSpec and the new AstPropertyResolveUtilsSpec.
codeStyle (Checkstyle + CodeNarc) reports no violations.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR addresses flakiness in WhereQueryClosureCaptureSpec by fixing AstPropertyResolveUtils’s static property-cache to avoid key collisions between distinct ClassNode instances that compare equal by name, and by ensuring cache entries are only published once fully populated.
Changes:
- Switch
cachedClassPropertiesto a synchronizedIdentityHashMapkeyed byClassNodeidentity (==) instead of name/equals(). - Avoid publishing partially-populated cache entries by building into a local map first, then publishing to the shared cache.
- Add a new Spock spec to deterministically reproduce and guard against same-name
ClassNodecache collisions.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| grails-datamapping-core/src/main/groovy/org/grails/datastore/gorm/transform/AstPropertyResolveUtils.java | Reworks the static cache to use identity-based keys and fixes non-atomic publication of newly created cache entries. |
| grails-datamapping-core/src/test/groovy/org/grails/datastore/gorm/transform/AstPropertyResolveUtilsSpec.groovy | Adds tests that exercise same-name ClassNode scenarios to prevent future cache-collision regressions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
The test case "property lookups for two same-named ClassNodes in different packages do not corrupt each other" currently uses different fully-qualified names ('org.example.one.Widget' and 'org.example.two.Widget'). To better exercise the regression mechanism and ensure the fix works for same-named classes, you should update this test to use the same fully-qualified name for both grails-datamapping-core/src/test/groovy/org/grails/datastore/gorm/transform/AstPropertyResolveUtilsSpec.groovy |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 8.0.x #16034 +/- ##
================================================
+ Coverage 0 52.3090% +52.3090%
- Complexity 0 18536 +18536
================================================
Files 0 2039 +2039
Lines 0 97509 +97509
Branches 0 17140 +17140
================================================
+ Hits 0 51006 +51006
- Misses 0 39020 +39020
- Partials 0 7483 +7483
🚀 New features to boost your workflow:
|
|
Thanks for the review! The scenario you're describing — two distinct void "property lookups for two distinct ClassNode instances with the exact same unqualified name do not corrupt each other"() {
given: 'two distinct ClassNode instances - as produced by two separate compilations - sharing an identical unqualified name'
ClassNode first = new ClassNode('Widget', Modifier.PUBLIC, ClassHelper.OBJECT_TYPE)
first.addProperty('color', Modifier.PUBLIC, ClassHelper.STRING_TYPE, null, null, null)
ClassNode second = new ClassNode('Widget', Modifier.PUBLIC, ClassHelper.OBJECT_TYPE)
second.addProperty('weight', Modifier.PUBLIC, ClassHelper.Integer_TYPE, null, null, null)
expect: 'the two ClassNode instances compare equal by name - the exact condition that would collide in a name-keyed or equals()-keyed cache'
first == second
first.hashCode() == second.hashCode()
!first.is(second)
...It goes a step further than the suggested edit by asserting The test this comment is attached to intentionally covers a different case: two |
jdaugherty
left a comment
There was a problem hiding this comment.
I had AI review this before taking a look, here's it's comments:
Reviewed the identity-keyed cache change. The direction is right — ClassNode.equals/hashCode really do compare by getText() (confirmed in Groovy 5.0.7: equals falls through to ((ClassNode) that).getText().equals(getText())), so a name- or equals()-keyed static cache genuinely conflates distinct compilations, and reordering so an entry is published only once fully populated is a real fix.
Two things I'd want resolved before this lands:
- Keying a
staticmap byClassNodeturns a bounded cache into a classloader leak. A primaryClassNodetransitively pins itsCompileUnitand therefore itsGroovyClassLoader, and nothing ever evicts. Detail inline — the per-nodegetNodeMetaDataalternative removes the collision and the leak, and drops the static state entirely. This is the part I'm most concerned about, since the whole point of the change is to make a process-wide static cache safe. - The stated root cause doesn't explain a flaky failure. The same source compiled twice yields two
ClassNodes with identical property sets, so a name collision between just those two can't diverge. The genuinely order-dependent input isclassNode.isResolved()at first-lookup time, which this PR doesn't change. Inline.
Smaller items, all inline: the protected field's type change plus new final is a breaking change worth converting into private + an explicit clear hook; the javadoc's concurrency rationale cites parallel test forks, which are separate JVMs and so cannot race on a static field; and the new spec doesn't cover the domain-class branches or the concurrency behaviour it claims to fix.
One follow-up outside the diff: WhereQueryClosureCaptureSpec:35 and WhereQueryEmbeddedBlockTransformSpec:37 both still carry the comment "The domain class names must be unique across the test JVM because AstPropertyResolveUtils caches resolved properties statically by class name". That is no longer true after this change, and the fixture renaming in 08bd0bf that it justifies is now unnecessary. Please update both comments (and note whether the renaming can be reverted) so those specs aren't left documenting the old behaviour.
…st gaps Responds to review feedback on the AstPropertyResolveUtils identity-cache fix: - Cache resolved properties as ClassNode metadata (classNode.redirect() .getNodeMetaData(key, fn)) instead of a static IdentityHashMap. This removes the classloader leak a static, never-evicted map would cause in long-lived JVMs (Gradle daemon, dev-mode recompiles) - cached data now becomes eligible for GC together with the ClassNode/compilation it describes. It also removes the now-unnecessary protected static field entirely (no more breaking-change surface on it), and eliminates the identity-collision hazard by construction rather than by choice of key type, since each ClassNode owns its own cache slot with no shared keyspace to collide on. - Corrected the javadoc's concurrency rationale: parallel Gradle test forks are separate JVMs (maxParallelForks) and this build does not enable JUnit's in-JVM parallel execution, so they were never a real race. Documented the actual, narrower exposure and why per-ClassNode storage sidesteps it (a given ClassNode is only ever populated by the single thread compiling it). - Verified classNode.isResolved() cannot flip from false to true for a given ClassNode instance post-construction (ClassNode.clazz has no setter outside the ClassNode(Class) constructor - checked against Groovy 5.0.7 sources), so the resolve-once-cache-forever design does not have the stale-snapshot hazard it would otherwise risk for classes resolved at varying compile phases. - Updated the stale "must be unique" comments in WhereQueryClosureCaptureSpec and WhereQueryEmbeddedBlockTransformSpec: per-instance caching means no same-named fixture can collide regardless of naming; the distinctive names are kept for readability, not correctness. - Extended AstPropertyResolveUtilsSpec: domain-class identity/version injection and hasMany/belongsTo/hasOne resolution via both AST initial expressions and (for an already-compiled class) reflection; a concurrency test resolving many distinct, identically-named ClassNodes across threads simultaneously; a test proving getPropertyNames returns the cached snapshot rather than recomputing after the ClassNode is mutated post-cache. Trimmed the equals()/hashCode() assertions in the collision test to the actual precondition the cache depends on (!first.is(second)), with a comment explaining why the equals()/hashCode() equality is the interesting/dangerous part rather than something to assert on. Verified: :grails-datamapping-core:test passes in full (including 3 repeated runs of AstPropertyResolveUtilsSpec to rule out flakiness in the new concurrency test). codeStyle (Checkstyle + CodeNarc) reports no violations across the whole repo. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Before pushing, ran an adversarial review of the prior commit's per-ClassNode
cache redesign. It found the new concurrency test didn't test concurrency at
all (all threads operated on distinct ClassNode instances, so nothing was
actually shared), and, digging into why that mattered, surfaced a genuine gap:
getNodeMetaData(key, fn) is backed by ListHashMap, which is explicitly
documented as not thread-safe, and some real callers (any property typed
Object/def) can resolve to ClassHelper.OBJECT_TYPE/STRING_TYPE - small,
JVM-wide-shared singleton nodes touched by every compilation in the process,
not scoped to one thread the way the previous javadoc assumed.
- Synchronize per-ClassNode (synchronized (cacheHolder) in
getPropertiesFromCache) so concurrent calls into this class are safe with
respect to each other, including on a shared singleton node. Documented
precisely what this does and does not cover (it can't force unrelated
compiler code writing a different metadata key to the same node to
synchronize on the same monitor - that residual risk belongs to ClassNode's
metadata storage in general).
- Replaced the placebo concurrency test (distinct nodes only) with one that
actually shares a single ClassNode across 32 threads, plus kept the
distinct-node test since it still legitimately covers the identity-collision
property. Verified the shared-node test's value honestly: with the
synchronized guard removed, it still passed 8/8 runs, because the cached
computation is deterministic/idempotent, so a black-box return-value test
can't reliably force ListHashMap's undocumented internals into an observably
wrong state. Said so directly in the test's comment rather than overclaiming
what it proves - the synchronization is justified by ListHashMap's own
"not thread-safe" documentation, not by this test catching a live bug.
- Tightened the isResolved()-invariance javadoc: the previous version's
argument ("clazz has no setter, so isResolved() can't flip") was incomplete,
since isResolved() also delegates through redirect(), which can in principle
be reassigned after construction. Verified via an actual GroovyBugError at
test runtime that ClassNode.setRedirect() refuses to run on a primary node -
and every ClassNode this utility's real callers pass in during an AST
transform is primary - so redirect() is simply the node itself for the
entire object's life in every real usage. Tried to write a unit test proving
the redirect/self-healing behavior for the one remaining theoretical case
(a non-primary reference node) and confirmed such a node can't be
constructed from outside Groovy's own ast package without reflection, which
would violate this repo's public-API-only testing rule - dropped that test
and rely on the (now precise) javadoc instead.
Verified: :grails-datamapping-core:test passes in full from a clean checkout
of the correct worktree/branch (caught and corrected a shell cwd mixup that
had briefly pointed a test run at a different local branch entirely).
codeStyle (Checkstyle + CodeNarc) reports no violations across the whole repo.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.
Suppressed comments (4)
grails-datamapping-core/src/test/groovy/org/grails/datastore/gorm/transform/AstPropertyResolveUtilsSpec.groovy:270
- As with the previous test, a timeout/exception during Future#get(...) will skip executor.shutdown(), leaking worker threads into the rest of the test run. Wrapping the concurrent section in try/finally ensures the ExecutorService is always terminated.
List<List<String>> results = futures.collect { Future<List<String>> future -> future.get(30, TimeUnit.SECONDS) }
executor.shutdown()
grails-datamapping-core/src/main/groovy/org/grails/datastore/gorm/transform/AstPropertyResolveUtils.java:56
- The PR description says the fix switches the global cache to a synchronized IdentityHashMap, but the implementation here no longer uses a static map at all; it caches via ClassNode node-metadata (PROPERTIES_CACHE_KEY). Please update the PR description (or the code) so reviewers and future archeology don’t get conflicting information about what was actually changed.
* Key under which the resolved property map is stashed via {@link ClassNode#getNodeMetaData(Object, java.util.function.Function)}.
* <p>
* Earlier versions of this class cached resolved properties in a single static, process-wide
* {@code Map} keyed by class name (later by {@code ClassNode} identity). Both designs share a
* problem: a static map is never emptied, so every {@code ClassNode} ever looked up - and, for
grails-datamapping-core/src/test/groovy/org/grails/datastore/gorm/transform/AstPropertyResolveUtilsSpec.groovy:205
- This spec creates a GroovyClassLoader but never closes it, which can retain loaded classes and contribute to memory pressure across the test suite. Also, if the class lookup fails, ClassHelper.make(domainClass) will NPE with a less-informative error. Consider asserting the class was found and closing the loader in a cleanup block.
Class<?> domainClass = gcl.loadedClasses.find { it.simpleName == 'ReflectedAssociationFixture' }
and: 'a fresh ClassNode built from the already-compiled class, as happens once compilation has finished'
ClassNode resolvedNode = ClassHelper.make(domainClass)
grails-datamapping-core/src/test/groovy/org/grails/datastore/gorm/transform/AstPropertyResolveUtilsSpec.groovy:227
- If any Future#get(...) throws (timeout/interruption), the test will fail before executor.shutdown() runs, leaking the thread pool into the rest of the JVM and potentially impacting later tests. Put executor shutdown into a finally block (and consider shutdownNow + awaitTermination) so threads are always cleaned up.
This issue also appears on line 268 of the same file.
List<Boolean> outcomes = futures.collect { Future<Boolean> future -> future.get(30, TimeUnit.SECONDS) }
executor.shutdown()
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.
Suppressed comments (3)
grails-datamapping-core/src/main/groovy/org/grails/datastore/gorm/transform/AstPropertyResolveUtils.java:60
- The PR description says the fix switches the cache to a synchronized IdentityHashMap keyed by ClassNode identity, but the implementation here has instead moved the cache to per-ClassNode node metadata (PROPERTIES_CACHE_KEY via getNodeMetaData). Please update the PR description (and/or title) to reflect the actual approach so reviewers and future archaeology don’t get misled.
* Earlier versions of this class cached resolved properties in a single static, process-wide
* {@code Map} keyed by class name (later by {@code ClassNode} identity). Both designs share a
* problem: a static map is never emptied, so every {@code ClassNode} ever looked up - and, for
* a primary node, the {@code GroovyClassLoader}/{@code CompileUnit} it pins via
* {@link ClassNode#getModule()} - is retained for the lifetime of the JVM. In a long-lived
* process that repeatedly compiles Groovy (a Gradle daemon reusing its Groovy compiler across
* builds, a dev-mode recompile loop), that is an unbounded classloader leak.
grails-datamapping-core/src/test/groovy/org/grails/datastore/gorm/transform/AstPropertyResolveUtilsSpec.groovy:270
- Same issue as above: if a Future.get(...) times out or barrier.await() throws, executor.shutdown() is skipped and the fixed thread pool can keep the JVM alive. Use try/finally to always shut down the pool (prefer shutdownNow + awaitTermination in tests).
int threadCount = 32
ExecutorService executor = Executors.newFixedThreadPool(threadCount)
CyclicBarrier barrier = new CyclicBarrier(threadCount)
when: 'all threads race to resolve properties for the same instance at once'
List<Future<List<String>>> futures = (0..<threadCount).collect {
executor.submit({ ->
barrier.await()
AstPropertyResolveUtils.getPropertyNames(sharedNode)
} as Callable<List<String>>)
}
List<List<String>> results = futures.collect { Future<List<String>> future -> future.get(30, TimeUnit.SECONDS) }
executor.shutdown()
grails-datamapping-core/src/test/groovy/org/grails/datastore/gorm/transform/AstPropertyResolveUtilsSpec.groovy:227
- If any Future.get(...) or barrier.await() throws, the test exits before executor.shutdown() runs, leaving non-daemon pool threads alive and potentially hanging the test JVM. Wrap the concurrent section in try/finally and always shut down/await termination.
int threadCount = 20
ExecutorService executor = Executors.newFixedThreadPool(threadCount)
CyclicBarrier barrier = new CyclicBarrier(threadCount)
when: 'all threads race to populate the cache for their own instance at the same time'
List<Future<Boolean>> futures = (0..<threadCount).collect { int i ->
executor.submit({ ->
barrier.await()
ClassNode node = new ClassNode('ConcurrentWidget', Modifier.PUBLIC, ClassHelper.OBJECT_TYPE)
String propertyName = "prop${i}".toString()
node.addProperty(propertyName, Modifier.PUBLIC, ClassHelper.STRING_TYPE, null, null, null)
List<String> names = AstPropertyResolveUtils.getPropertyNames(node)
names.contains(propertyName) && names.count { it.startsWith('prop') } == 1
} as Callable<Boolean>)
}
List<Boolean> outcomes = futures.collect { Future<Boolean> future -> future.get(30, TimeUnit.SECONDS) }
executor.shutdown()
jdaugherty
left a comment
There was a problem hiding this comment.
Re-reviewed after the move to per-ClassNode metadata. Everything from the previous round is addressed and I have resolved those threads — the static map is gone, publication is safe, and the tests now reach the domain-class branches. The empirical reproduction you did settled the question of whether the flake mechanism was real, which was the right way to answer it.
Two major remain:
-
AstUtils.isDomainClassis@Memoizedby name, so "no collision is possible" and "no leak is possible" are not accurate yet. I verified a genuinely@Entitynode losing itsid/versionbecause a same-named plain node was resolved first. The fix is still a clear improvement — it narrows the corruption from the whole property map to a single boolean — but the javadoc and the two spec comments should say what is actually true. The retracted "names must be unique" warning is the one I most want restored, sinceBook/Authorreally are shared across specs in this module andforkEvery = 50puts them in one JVM. -
!first.is(second)in the new spec sits in agiven:/and:block, so it never asserts.
The rest is smaller: the cache now writes into interned ClassHelper singletons that ClassNode.getModule() reads without the lock, alien code runs under the node monitor, and the new spec leaks its executors and classloader on the failure path.
…x isDomainClass javadoc claim Responds to jdaugherty's latest review round on AstPropertyResolveUtils: - The per-ClassNode property cache does not make isDomainClass collision-free: AstUtils#isDomainClass(ClassNode) is @memoized by Groovy's default, equality-keyed memoize, and ClassNode#equals()/hashCode() reduce to the class name. Corrected the javadoc's "no collision is possible" claim to scope it to the property map and call out this separate, pre-existing exposure instead of overclaiming immunity to it. Restored the "must stay unique" wording in WhereQueryClosureCaptureSpec/WhereQueryEmbeddedBlockTransformSpec accordingly. - getPropertiesFromCache now skips caching for non-primary ClassNodes (ClassNode#isPrimaryClassNode() == false), which is what interned, JVM-wide-shared singletons like ClassHelper.OBJECT_TYPE/STRING_TYPE are. QueryStringTransformer can feed such a node in as a cache holder for a JDK-typed property; this class no longer writes its metadata key into a node it doesn't own. These nodes are cheap to recompute, so skipping the cache for them has no material cost. - computeProperties can force a domain class's static initializer and invoke user-written static getters via ClassPropertyFetcher. Moved that call outside the synchronized(cacheHolder) block so the per-node monitor is only held to check for and publish the result, not while running that code. - IDENTITY/VERSION property types now use ClassHelper.make(Long.class).getPlainNodeReference(), matching the existing hasMany/belongsTo/hasOne convention, instead of a fresh, uninterned new ClassNode(Long.class) per computation. - Fixed a no-op assertion in AstPropertyResolveUtilsSpec: a bare boolean expression in an "and:" block continuing "given:" is never implicitly asserted by Spock. Added an explicit assert. - Added cleanup: blocks to the concurrency tests (executor.shutdownNow(), timed barrier.await()) and closed the GroovyClassLoader in the reflection test, so a hung/failed thread can no longer leak a non-daemon thread pool into the rest of the test JVM (forkEvery = 50). Verified: :grails-datamapping-core:test full module suite passes, including all three touched specs. codeStyle (Checkstyle + CodeNarc) reports no violations across the whole repo. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
✅ All tests passed ✅🏷️ Commit: 0d195f1 Learn more about TestLens at testlens.app. |
|
jdaugherty
left a comment
There was a problem hiding this comment.
Re-verified this round against 0d195f1 — every item from the previous reviews is addressed in the code, not just in the replies: the javadoc's collision claim is now correctly scoped to the property map with the isDomainClass memo exposure documented as the separate, pre-existing issue it is; non-primary (interned/class-backed) nodes are no longer written to; computeProperties runs outside the per-node monitor with a double-checked publish; IDENTITY/VERSION use plain node references; the uniqueness requirements are restored in both Where specs with accurate rationale; and the test fixes (explicit assert for the silent precondition, cleanup: with shutdownNow(), timed barrier.await, closed GroovyClassLoader) are all in place.
CI is green across the board and :grails-datamapping-core passes locally on this branch, including all three touched specs.
Two follow-ups worth tracking outside this PR, neither blocking: (1) the AstUtils.isDomainClass name-keyed memoization deserves its own issue as previously discussed — please file it so the javadoc's "tracked separately" has something to point at; (2) if compile-time profiling ever shows the uncached recompute path mattering for precompiled (non-primary, class-backed) domain-class nodes, a ClassValue keyed on the resolved Class would be a targeted improvement over re-widening the cache.
Summary
WhereQueryClosureCaptureSpechas two flaky feature methods (~2% flaky per#16030, 0 hard failures) verifying that closures generated by the
where {}query transform only capture the variables they actually reference.Root cause
AstPropertyResolveUtils.cachedClassPropertiesis a static, non-thread-safeHashMapused by the
where-transform's variable-scope recompute path(
DetachedCriteriaTransformer). It was already keyed byClassNode.getName()(qualified name), not a bare simple name as first suspected — but
ClassNode.equals()/hashCode()also compare by name, and this spec's own test deliberately compilesidentical source twice into two separate
GroovyClassLoaders, producing twodistinct
ClassNodeinstances that areequals()-identical and therefore collide asthe same cache entry. This is reachable by any two classes sharing a name across
separate compilations, not just this test — a prior partial fix (08bd0bf) only
renamed this spec's fixtures to reduce collisions with sibling specs, without fixing
the cache itself.
Fix
cachedClassPropertiesto a synchronizedIdentityHashMap<ClassNode, ...>— keys compared by
==, so two distinctClassNodes can never collide regardless ofshared naming.
published into the shared map before its population loop finished, letting a
concurrent reader observe a partially-populated entry. Population now completes into
a local map first, then publishes atomically.
Testing
AstPropertyResolveUtilsSpec.groovy(public-API only): includes a test thatconstructs two distinct
ClassNodes sharing the exact same name and asserts eachresolves independently — a direct, deterministic reproduction of the collision
mechanism, not a rerun-and-hope test.
:grails-datamapping-core:test(full module): BUILD SUCCESSFUL, no failures,including both previously-flaky feature methods.
Related: #16030