aw-sync: rowid upgrade bootstrap does not recover backfills lost under the old timestamp cursor
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Read the bootstrap and rowid-cursor work in ActivityWatch/aw-server-rust#789, along with the old destination-as-marker behavior in #696. First decide how reconciliation should match events when heartbeat merging is involved; the issue does not name implementation files or tests. Done means an opt-in bootstrap reconcile or aw-sync --reconcile recovers missing source events without duplicating destination events.
Written by the indexing model from the issue text.
Description
Follow-up from ActivityWatch/aw-server-rust#789 (review thread on the upgrade bootstrap).
Gap. On the first pull after upgrading to the rowid cursor (stored_rowid == 0 and the destination already has events), #789 seeds the cursor at the source's current max rowid and runs one last timestamp-cursor pass. A backfilled event (old timestamp, new rowid) that landed in the source before that first rowid pull sits below both boundaries: the max-rowid seed marks it consumed, and the timestamp pass starts after the destination's newest event. It is never copied.
Scope. This is not a regression. The same events were already lost under the old destination-as-marker cursor (#696); #789 stops new losses but does not recover old ones. My earlier description on the review thread ("only if the timestamp pass fails") was too narrow: the miss happens even when that pass succeeds.
Possible fix. A one-time, opt-in reconcile on the bootstrap pass (or an explicit aw-sync --reconcile flag): scan source history, then insert events missing from the destination, matched by (timestamp, duration, data). Heartbeat-merged events complicate the matching, so this needs a design decision before anyone implements it. It is not needed to merge #789.
- Dominant language
- Rust
- Stars
- 322
- Forks
- 105
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 22
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ActivityWatch/aw-server-rust
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ActivityWatch/aw-server-rust#798 · 1 comment ·
Maintainers usually reply within 1 day
-
Allow configuring sync dir in the `aw-sync/config.toml` filePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 3/5 1-2 days Newbie friendliness 58/100
ActivityWatch/aw-server-rust#853 · 1 comment ·
Maintainers usually reply within 1 day
-
Correctness bugs: heartbeat cache, query cache invalidation, commit rollback statePossibly taken A pull request linked to this issue is open or already merged. Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 25/100
ActivityWatch/aw-server-rust#825 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
ActivityWatch/aw-server-rust#790 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
ActivityWatch/aw-server-rust#717 · 2 comments ·
Maintainers usually reply within 1 day
All issues in ActivityWatch/aw-server-rust
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
symposium-dev/symposium#530 ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
topgrade-rs/topgrade#2540 ·
Maintainers usually reply within 1 day
-
Invalid JSON options for ngram and edge_ngram silently use defaultsPossibly taken @Tilendlesa claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
noemaforge/vimanam#153 ·
Maintainers usually reply within 1 day