Skip to content

Comments

test(document): add strict distributed search under churn#10

Open
Faolain wants to merge 4 commits intofix/search-convergence-under-churnfrom
test/strict-search-under-churn
Open

test(document): add strict distributed search under churn#10
Faolain wants to merge 4 commits intofix/search-convergence-under-churnfrom
test/strict-search-under-churn

Conversation

@Faolain
Copy link
Owner

@Faolain Faolain commented Feb 7, 2026

Links:

What this adds:

  • A targeted test that models a production client requiring a complete view under churn by using:
    • remote.throwOnMissing=true
    • increased remote.timeout
    • retries/backoff
  • Important detail: the test uses on-disk block storage (per-peer temp directories) so that stop/start resembles a real restart (no data loss due to ephemeral in-memory blocks).

File:

  • packages/programs/data/document/document/test/strict-search-under-churn.spec.ts

Local verification:

  • PASS (10x): for i in {1..10}; do PEERBIT_TEST_SESSION=mock pnpm --filter @peerbit/document test -- --grep "strict search under churn" || break; done

@Faolain Faolain changed the base branch from master to fix/search-convergence-under-churn February 7, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant