Skip to content

feat(rust): range sessions are selected and answered by method [P3.3] — stale, needs review - #727

Closed
dezren39 wants to merge 1 commit into
mainfrom
p3-range
Closed

dezren39 wants to merge 1 commit into
mainfrom
p3-range

Conversation

@dezren39

@dezren39 dezren39 commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Laptop cleanup pass (2026-10-24): surfacing a local-only branch from the laptop (~/code), commits older than 48h.

Branch tip 80c3ce3 (2026-10-12). Large sync/log_sync change (+757/-407, 5 files) from the P3 phase. The surrounding platform work landed via other branches, so this may be superseded or conflicting — opened for enumeration and review, NOT merged. Drew: close if superseded.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Range sync now runs as a method of the /id-sync/1 session. The initiator's
Request names the method that choose() picked, and the responder answers it
if it runs that method. run_agreed has a Range branch that runs
event_store::sync::run_range on the agreed stream.

- LogAndRange is the SyncSupport a node registers to serve both methods.
- SharedEventStore::estimate fills Estimate from the store: the chain count
  is the number of authors LogSync resolves for the topic. The difference
  and the last completed sync come from a PeerHistory the caller keeps. It
  is in memory for now, and storing it is open.
- The range session syncs the topic's authors only, as LogSync does, so the
  Request's topic means the same thing for both methods.
- The frame cap is the sync stream's (1 MiB, world_session's
  MAX_FRAME_BYTES), and the default budget is half of it. A 4 MiB budget
  would be refused by the stream's reader.
- A cut finishes the send half early, not reset: QUIC discards unread data
  on reset, and the acceptor then committed nothing.
@dezren39
dezren39 requested a review from a team as a code owner October 24, 2026 08:15
@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8d73bfc2-2831-4f93-9bea-6347bed9eb8d
Commits

Reviewing files that changed from the base of the PR and between 2258678 and 80c3ce3.

Files selected for processing: 5
  • pkgs/id/src/event_store/range.rs
  • pkgs/id/src/event_store/sync.rs
  • pkgs/id/src/log_sync.rs
  • pkgs/id/src/store_traits.rs
  • pkgs/id/src/sync_method.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dezren39

Copy link
Copy Markdown
Member Author

Left unmerged in the 2026-10-24 cleanup merge pass — tracking issue: #741 (recommend closing; range sync already landed via integration).

@dezren39

Copy link
Copy Markdown
Member Author

Closing at Drew's direction (2026-10-24) per tracking issue #741 — range sync already landed in main via integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant