Released: TBD
Compare: v0.12.0-alpha.21…v0.12.0-alpha.22
A retention release. Spec planning#142 (#388, #389, ADR 0048) purges delivered ping events, SSF Verification Events sent or received, 24 hours after this server stored them. Until now a community server kept every ping forever beside its data events.
This alpha has behaviour changes operators must act on:
I2SIG_PING_RETENTION (default
24h). One node per cluster runs the purge every 6 hours under the
maintenance:ping-purge lease. A ping still pending on any stream is never
purged; data events are not touched. I2SIG_PING_RETENTION=0 turns it off._id).{ping:1, state:1,
createdAt:1} partial on ping: true on deliveries, and {receivedAt:1}
partial on Verification Event types on events. On a large store, build
them beforehand in a maintenance window to keep the build off the upgrade.migration:ping-marker). It
records a done flag in the migrations collection; a failure logs a WARN,
does not stop the server and is retried at the next start.compact; run it
yourself on events and deliveries, one member at a time, if you want the
space back after the first drain.See operations.md.
receivedAt; every delivery write path marks a ping’s delivery record
(ping: true). The purge deletes delivered ping records, then the ping
bodies stored in the window that no pending record references.services.PingPurger, oldest-first one-hour windowed
deletes, the last purge time on the lease row, one INFO summary per run,
no metrics.receivedAt fall back to the
ObjectId _id time (memory: the sort time); the fallback query is index
backed. The migration:ping-marker backfill marks legacy delivery records
in batches of 1000; the memory store derives the marker when it loads its
files. A backlog test drains 30 days of pre-upgrade pings across cancelled
and resumed runs.