From 92e6b9823119b5461efc304a81e79e186a928e6d Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Wed, 7 Oct 2026 21:31:10 +0200 Subject: perf(node): list a group's directories off the event loop Every full index walked all roots on the loop, and a node with several large roots stopped answering for seconds. Walk directories only, on the roots' disk thread; index_sync is spawned and still answers on failure. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-node/tests/golden/dispatch.json | 128 +++++++---------------- 1 file changed, 40 insertions(+), 88 deletions(-) (limited to 'packages/meshbay-node/tests/golden/dispatch.json') diff --git a/packages/meshbay-node/tests/golden/dispatch.json b/packages/meshbay-node/tests/golden/dispatch.json index 61bbc45..44d030a 100644 --- a/packages/meshbay-node/tests/golden/dispatch.json +++ b/packages/meshbay-node/tests/golden/dispatch.json @@ -9167,115 +9167,67 @@ }, "index_sync | member | bare": { "audit": [], - "log": [ - "ERROR Error handling %s on DataChannel: %s" - ], - "sent": [ - { - "detail": "Request failed", - "req_id": 4242, - "type": "error" - } - ], - "spawned": [] + "log": [], + "sent": [], + "spawned": [ + "_do_index_sync" + ] }, "index_sync | member | lists": { "audit": [], - "log": [ - "ERROR Error handling %s on DataChannel: %s" - ], - "sent": [ - { - "detail": "Request failed", - "req_id": 4242, - "type": "error" - } - ], - "spawned": [] + "log": [], + "sent": [], + "spawned": [ + "_do_index_sync" + ] }, "index_sync | member | numbers": { "audit": [], - "log": [ - "ERROR Error handling %s on DataChannel: %s" - ], - "sent": [ - { - "detail": "Request failed", - "req_id": 4242, - "type": "error" - } - ], - "spawned": [] + "log": [], + "sent": [], + "spawned": [ + "_do_index_sync" + ] }, "index_sync | member | strings": { "audit": [], - "log": [ - "ERROR Error handling %s on DataChannel: %s" - ], - "sent": [ - { - "detail": "Request failed", - "req_id": 4242, - "type": "error" - } - ], - "spawned": [] + "log": [], + "sent": [], + "spawned": [ + "_do_index_sync" + ] }, "index_sync | operator | bare": { "audit": [], - "log": [ - "ERROR Error handling %s on DataChannel: %s" - ], - "sent": [ - { - "detail": "Request failed", - "req_id": 4242, - "type": "error" - } - ], - "spawned": [] + "log": [], + "sent": [], + "spawned": [ + "_do_index_sync" + ] }, "index_sync | operator | lists": { "audit": [], - "log": [ - "ERROR Error handling %s on DataChannel: %s" - ], - "sent": [ - { - "detail": "Request failed", - "req_id": 4242, - "type": "error" - } - ], - "spawned": [] + "log": [], + "sent": [], + "spawned": [ + "_do_index_sync" + ] }, "index_sync | operator | numbers": { "audit": [], - "log": [ - "ERROR Error handling %s on DataChannel: %s" - ], - "sent": [ - { - "detail": "Request failed", - "req_id": 4242, - "type": "error" - } - ], - "spawned": [] + "log": [], + "sent": [], + "spawned": [ + "_do_index_sync" + ] }, "index_sync | operator | strings": { "audit": [], - "log": [ - "ERROR Error handling %s on DataChannel: %s" - ], - "sent": [ - { - "detail": "Request failed", - "req_id": 4242, - "type": "error" - } - ], - "spawned": [] + "log": [], + "sent": [], + "spawned": [ + "_do_index_sync" + ] }, "invite_cancel | challenged | bare": { "audit": [], -- cgit v1.2.3