Sync with other peers never re-downloads blobs
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- rust
- Ambito
- distributed-systems
Direzione di ricerca
Inizia tracciando il percorso di sincronizzazione di Docs, la gestione di Download policy, il tracciamento di missing_hashes e gli eventi ContentReady descritti nell’issue. Confronta il comportamento con l’approccio collegato di iroh-lan in router.rs; il lavoro è completato quando un peer può risincronizzarsi con un altro peer e ottenere blob che un peer precedente non aveva, senza intervento locale.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Current system allows to set a Download policy so you automatically download values (blobs) from peers that inserted an entry.
When everyone is connected, and you are fully synced, it works without any problem and it automatically downloads from peers. It also maintains a list of missing_hashes in case who inserted doesn't have the hash yet, and later downloads from them when it receives a ContentReady event.
The problem arrises when you first sync with a peer that doesn't have all blobs downloaded. This might happen because it didn't download yet or because their Download Policy doesn't allow them to download it.
After that, the system will never try to download from any other peer that information unless you do so locally. Even if you sync with other peers, you only exchange information about the keys, so in case your keys are synced, you don't try to download the values.
For me, this seems like a non intended behavior because the download policy of one peer shouldn't affect other peers that are actively downloading all values.
Other projects like iroh-lan, do the re-syncing themselves by querying the whole key-value store and looking for missing hashes in blobs then retrying download them from other peers.
This could be done more efficiently inside Docs and also emitting events about ContentReady again so when someone does the syncing, others could piggyback and request any missing_hashes on their side directly, reusing docs machinery.
- Lingua principale
- Rust
- Stelle
- 81
- Fork
- 19
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di n0-computer/iroh-docs
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
n0-computer/iroh-docs#124 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
n0-computer/iroh-docs#122 ·
-
Sync with a peer stays wedged after one AlreadySyncing refusal (local state never leaves Running)Aperta
Difficoltà 3/5 Mezza giornata Idoneità per principianti 62/100
n0-computer/iroh-docs#121 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
n0-computer/iroh-docs#120 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
n0-computer/iroh-docs#109 ·
Tutte le issue di n0-computer/iroh-docs
Issue simili
-
area:web kind:bug priority:p2 ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
sims1253/ry#931 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
sims1253/r-typeshed#140 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
storytold/craft-libs#2867 ·
I maintainer di solito rispondono entro 1 giorno
-
help wanted needs investigation priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100