-
-
Notifications
You must be signed in to change notification settings - Fork 105
Closed
Labels
A-networkingArea: Networking, ring protocol, peer discoveryArea: Networking, ring protocol, peer discoveryP-mediumMedium priorityMedium priorityS-needs-reproductionStatus: Bug needs reproduction steps or confirmationStatus: Bug needs reproduction steps or confirmationT-bugType: Something is brokenType: Something is broken
Description
Summary
test_three_node_network_connectivity fails to form a full mesh after the event-log aggregator refactor. Gateway links come up, but peer↔peer links never appear, so the test times out.
Steps to Reproduce
- Checkout
feat/event-log-aggregator(current PR branch). - Run
cargo test --test connectivity test_three_node_network_connectivity -- --nocapture. - Observe that the gateway reports two peers, while each peer only lists the gateway. After ~60s the test fails.
Expected Behavior
After both peers join the gateway they should discover each other and form a direct connection, satisfying the full-mesh assertion.
Actual Behavior
ConnectedPeersshows each peer connected only to the gateway.- Event logs contain only gateway↔peer
Connectevents. connection_maintenancenever acquires additional peers (live transaction tracker stays empty).
Notes & Hypotheses
- The aggressive bootstrap loop exits without seeding the first peer↔peer link. Skip lists or router cache may prevent forwarding recommendations beyond the gateway.
- Extending wait times or force-adding gateways did not resolve the issue; instead bootstrap stalled.
Suggested Next Steps
- Instrument
connection_maintenance/forward_connto see why the gateway doesn't suggest other peers once multiple peers are attached. - Verify whether the router cache excludes the gateway when searching for candidates.
- After fixing discovery, restore a strict assertion in the integration test so CI keeps the mesh requirement enforced.
/cc @freenet-networking
Metadata
Metadata
Assignees
Labels
A-networkingArea: Networking, ring protocol, peer discoveryArea: Networking, ring protocol, peer discoveryP-mediumMedium priorityMedium priorityS-needs-reproductionStatus: Bug needs reproduction steps or confirmationStatus: Bug needs reproduction steps or confirmationT-bugType: Something is brokenType: Something is broken
Type
Projects
Status
Done