The GitHub Actions job "Coverage" on grails-core.git/mongo-ttl-index-support 
has succeeded.
Run started by GitHub user codeconsole (triggered by codeconsole).

Head commit for run:
6bcbd44516d962e1a4fbc0149aabe80bd518937d / Scott Murphy Heiberg 
<[email protected]>
Support TTL indexes in the GORM-Mongo mapping DSL and reconcile index option 
changes

indexAttributes: [expireAfterSeconds: N] now materialises a MongoDB TTL index.
The driver only exposes the two-argument IndexOptions.expireAfter, which
MongoConstants.mapToObject cannot reach (it only invokes single-argument
setters), so expireAfterSeconds is pulled out of the attributes and applied
explicitly.

All three index paths in MongoDatastore.initializeIndices (declared, compound,
and per-property) now route through a single helper. On IndexOptionsConflict
(error 85) it reconciles instead of only logging: a TTL change is applied in
place with collMod (no drop, no rebuild, no gap); any other conflicting change
is dropped and recreated only when indexAttributes: [recreateOnConflict: true]
is declared, otherwise logged with guidance.

Adds TtlIndexSpec covering TTL creation from the mapping declaration and
in-place TTL reconciliation on re-initialisation.

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

With regards,
GitHub Actions via GitBox

Reply via email to