* filer.sync: save the sync position on the source filer as a replay cursor
The position stays authoritative on the target. The source copy holds the
last position the target checkpoint stored (a fresh sync without one holds
just before the first event it received) and is rewritten hourly while the
sync runs, even when the position does not move.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer.sync: do not replicate the sync cursors of the source
A target never holds cursors that describe the source's log. A rename into
or out of the cursor directory replicates the ordinary side.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* metadata log purge: keep the logs a filer.sync still needs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer.sync: describe the sync in its source cursor
The source cursor is informational: besides the position it records the
source and target filers and paths, exclusions, host, version, when the
sync started, whether the position is a target checkpoint, and the
processed and failed event times, for display in admin tools. The
target checkpoint stays authoritative.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer.sync: save the first sync cursor when the first event arrives and retry failed saves
A fresh sync only saved its cursor on the next minute tick, and a failed
save still pushed the next attempt out by an hour, leaving the purge
without a cursor while the sync replayed old log days.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer.backup: do not seed the source's sync cursors in the initial snapshot
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* metadata log purge: say that a position not saved for 7 days stops holding the log
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer.backup test: lock the recording sink for concurrent snapshot workers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer.sync: leave the sync cursors out of the metadata log gap check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* filer.sync: warn when the source metadata log no longer covers the sync
A sync replays the source's metadata log from its saved position, or from
the oldest log file when it has none. Once older log days are purged, a
position older than the log silently skips the purged changes, and a fresh
sync never copies entries whose last change was purged, so the target ends
up incomplete without any sign of it.
At start, compare the position with the oldest log file the source keeps;
for a fresh sync, look for a child of the source path whose last change
(commit time, or mtime for entries without one) predates the log, and log
a warning naming it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer.sync: skip excluded and multipart upload entries in the log gap check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer.sync: run the log gap check without delaying the subscription
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>