Skip to content

statement-store: first v2 DHT e2e test and opt-in CLI flags#12439

Open
DenzelPenzel wants to merge 4 commits into
feature/statement-store-dhtfrom
denzelpenzel/v2-dht-e2e-subscribe-submit
Open

statement-store: first v2 DHT e2e test and opt-in CLI flags#12439
DenzelPenzel wants to merge 4 commits into
feature/statement-store-dhtfrom
denzelpenzel/v2-dht-e2e-subscribe-submit

Conversation

@DenzelPenzel

Copy link
Copy Markdown
Contributor

Implementation (#12428)

What

Lands the first end-to-end test for the v2 DHT-affinity statement routing path,
plus the minimal wiring required to exercise it from zombienet.

Changes

  • Make the v2 path opt-in. v2dht_enabled() was a hard-coded const fn.
    It is now a per-node runtime flag (StatementHandler::v2dht_enabled), threaded
    from a new CLI option --enable-statement-store-v2-dht (default off).
  • Expose topology parameters as CLI flags:
    • --statement-replication-factor <K>
    • --statement-gossip-target <N>
  • New zombienet test v2_dht_k1_subscribe_submit_resubscribe
    on a 2-node network with K=1 it asserts
    1. the subscriber receives the submitted statement (delivery),
    2. exactly one node stores it locally (count_storers == 1, selectivity),
    3. after dropping and recreating the subscription, a second statement is
      delivered again (resubscribe stability).
  • Test helpers in common.rs: collator_args_v2, stores_locally,
    count_storers.

@DenzelPenzel DenzelPenzel requested review from a team and acatangiu as code owners June 23, 2026 11:33
@DenzelPenzel DenzelPenzel added the T0-node This PR/Issue is related to the topic “node”. label Jun 23, 2026
@DenzelPenzel DenzelPenzel requested review from a team as code owners June 23, 2026 11:33
@DenzelPenzel DenzelPenzel added the T10-tests This PR/Issue is related to tests. label Jun 23, 2026
@DenzelPenzel DenzelPenzel changed the base branch from master to feature/statement-store-dht June 23, 2026 11:33
@DenzelPenzel DenzelPenzel force-pushed the denzelpenzel/v2-dht-e2e-subscribe-submit branch from 68d02e9 to fdcfbd8 Compare June 23, 2026 11:35
…olkadot-sdk into denzelpenzel/v2-dht-e2e-subscribe-submit
@DenzelPenzel

Copy link
Copy Markdown
Contributor Author

/cmd fmt

@paritytech-workflow-stopper

Copy link
Copy Markdown

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/28025437879
Failed job name: cargo-clippy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T0-node This PR/Issue is related to the topic “node”. T10-tests This PR/Issue is related to tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant