Repository navigation
Store: v2 local store, feed and upload effects, change-log reader (DEV-1150 part C) - #50
Merged
Merged
Conversation
…the core, fuzz checks connect-time sends, reconnect delay never below 1 s
…ency and shadow coverage tests change_log.rs: a failed heartbeat save inside ChangeLogReader::read no longer discards the Docs/DatabaseChanged result it already computed; the error is logged and the heartbeat is retried on the next tick. uploads.rs: add a test that settling the same Ok(reply) twice for one upload is a no-op the second time, and assert the new shadow's hash in the migrated-document conflict-path test.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DEV-1150 part C: the v2 local store that the driver loop (part D) will run the core against. Stacked on #49 (transport), which is stacked on #48 (engine core). Merge in order: #48, #49, then this.
What's in it
max(1 s, c/2·(1+r)), capped at 60 s. This is a requirement from the 2026-09-28 reconnect-storm incident.Store::openuses WAL, and every read-then-write runs in oneBEGIN IMMEDIATEtransaction. Identity is adopted once; after that a mismatch isidentity_drift.apply_ops: each rule call's ops go in one transaction.Recoverwrites the full local content torecoveredbefore the content is replaced.readis the single per-tick entry point. It is woken bydata_version, heartbeats when due, and reportsDatabaseChangedwhen trimmed past.recovered).Testing
cargo test -p replicant-client --lib: 362 passed.--test wire_contract_tests: 14 passed.