non symmetric sync

Aperta
#56 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rust

Direzione di ricerca

Inizia eseguendo il test test_download_policies e rivedendo le relative asserzioni di sync e download insieme ai log acquisiti. Confronta l'avvio della sync e il comportamento di RemoteInsert per NK e WP, in particolare il numero di peer riportato. Il lavoro è completato quando il comportamento asimmetrico è compreso e il test osserva in modo coerente gli 1 e 3 download attesi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

These are the full logs of a test failure for test_download_policies. This is not a frequent failure at all so having the logs is a great opportunity to understand what's going on with this sync/docs problem.

The test setup is as follows:

There are two nodes: nkpqjtgrfsdzojzk (NK) and wp3g26raw2ercopv (WP),
NK has 6 locally inserted entries.
WP has 3 locally inserted entries.
Both nodes are supposed to sync all entries from the other node, of course.
NK should download 1 of the entries WP has.
WP should download 3 of the entries NK has.
At the end of the test we assert that these exact numbers are upheld (sync and download ones).
What actually happens:

Nodes connect to each other.
They both emit the start sync log/event
WP emits the RemoteInsert events it should
WP downloads the entries it should
Silence from NK, no RemoteInsert at all, and of course no downloads either.
Notable logs:

DEBUG sync{me=nkpqjtgrfsdzojzk}: iroh::docs_engine::live: start sync namespace=NamespaceId(6gebwlyf7po3fygx) peers=0
DEBUG sync{me=wp3g26raw2ercopv}: iroh::docs_engine::live: start sync namespace=NamespaceId(6gebwlyf7po3fygx) peers=1
NK claims to be starting sync with 0 peers. This is weird and potentially a problem on itself. However the fact that WP is actively communicating and successfully syncing with NK tells me there is a connection and sync messages are being passed. Still, NK is not using that info on its side, which leads me to conclude sync is not happening symmetrically

Copied from https://github.com/n0-computer/iroh/issues/2319

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di n0-computer/iroh-docs

Tutte le issue di n0-computer/iroh-docs

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.