Skip to content

non symmetric sync #56

@rklaehn

Description

@rklaehn

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 n0-computer/iroh#2319

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions