Files
sailing-analytics/configuration
Axel Uhl 83cb23c78a Add one-shot migration to strip/remove legacy random= nonce docs from restore queue
Legacy documents in CONNECTIVITY_PARAMS_FOR_RACES_TO_BE_RESTORED stored the raw
paramURL including a random=<nonce> query parameter. Current keying (via
TracTracRaceTrackerImpl.getParamURLStrippedOfRandomParam) writes and deletes
using the paramURL stripped of that nonce, so the raw legacy copies can never be
matched by replaceOne/deleteOne. They linger indefinitely, inflate the restore
queue, and are re-attempted on every server start.

This mongosh migration auto-discovers every database in a replica set, skips
those without the collection, and for each nonce-bearing document either deletes
it (when a stripped twin already exists) or strips the random= parameter in
place (when it is the only copy). Dry-run by default; APPLY=1 executes and first
copies each affected document into a per-DB _NONCE_BACKUP collection for
rollback.

Assisted-By: Claude Opus 4.8 (claude-opus-5-5)
2026-09-28 22:52:42 +02:00
..
…
2014-05-23 12:22:12 +02:00
…
…
2025-01-14 14:52:12 +01:00
2024-05-17 10:30:38 +02:00
2015-12-01 10:29:38 +00:00
2026-07-11 18:06:16 +02:00