n0-computer / n0-computer/iroh-docs

Syncing fails with iroh_docs version 0.91.0, but works correctly with version 0.35.

Open
#51 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
74
Forks
16
PR merge metrics
No merged PRs in 30d

Description

In iroh version 0.91.0, joining a shared document works correctly the first time using the following code. However, on the second join attempt with the same code:

  • Updates from the remote document are received and synchronized correctly.
 let doc = node.docs.import(ticket).await?;
  • But updates made locally only trigger LiveEvent::InsertRemote on the remote node, without actually downloading the corresponding blob content.

  • Rejoining the same sync node has no effect.

  • Interestingly, if a new node joins the document for the first time, everything works as expected.

This issue does not exist in iroh version 0.35 — synchronization works both ways as intended.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the second-join case around node.docs.import(ticket).await? in iroh 0.91.0, comparing it with 0.35. Trace the LiveEvent::InsertRemote path and blob fetching during rejoin. Done means repeated joins synchronize local updates and download their blob content, while first-time joins continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.