Skip to content

test(m3): add opt-in RDMA/NVMe payload integrity coverage - #629

Merged
ketor merged 1 commit into
dingodb:mainfrom
ketor:agent/m3-rdma-integrity-1b3b00f7-acceptance
Nov 28, 2026
Merged

ketor merged 1 commit into
dingodb:mainfrom
ketor:agent/m3-rdma-integrity-1b3b00f7-acceptance

Conversation

@ketor

@ketor ketor commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a default-off native integration test for full-payload transport/integrity across the slab and log engines.
  • With explicit opt-in NVMe roots and one explicitly selected RDMA device, cover real RDMA writes and full reads, clean close/reopen, known-missing behavior, exact object identity/length, payload digests, and lease/MR teardown counters.
  • Combine this with existing focused recovery and lease-generation tests; change no product path, transport source, persistent format, public default, CI resource request, or configuration knob.

Source identity and physical-evidence scope

Candidate d59570c5 replays the previously reviewed single +347-line test-file patch onto current 1b3b00f7 main. The test source is byte-identical (SHA256 d95071261cf03f6966669d8cb9b5462aaf3c67a944305a8967b3f5ba23e148c8) and the stable patch-id is unchanged. The physical results below were actually executed against previous e1595c66 on d75063a3, not asserted as a second HCA run against this replayed base. Current maintained full regression and integrated source review are separate gates.

Focused physical validation

The private opt-in matrix used a same-host, same-port physical InfiniBand device ib8s400p0 and NVMe backing dm-2 -> nvme1n1 with an O_DIRECT preflight. This is not generic RoCE coverage, a cross-host/two-port test, or an rdma_rxe result.

Selected native execution was 8 PASS / 0 SKIP / 0 FAIL:

  • this new integration test: 1 PASS;
  • existing clean-reopen/explicit-sync/SIGKILL recovery test: 1 PASS;
  • existing stale-generation, retired-read-key and retired-write-key negative controls: 3 PASS per engine, 6 total.

Both engines used payloads of 4096, 65537, 2097169 and 2873098 bytes. Across initial and clean-reopen phases there are 16 payload records totaling 20,159,600 bytes, with full native byte equality, exact BlockKey filenames and lengths, matching expected/read FNV-1a-64 diagnostics, and independently recomputed digests. Every phase verifies the declared device, zero integrity/O_DIRECT-fallback errors and zero remaining connection, segment, lease, dynamic-read and transient-MR ownership counters after teardown.

For each engine, the recovery fixture independently verifies 32 complete 2873098-byte values after a clean 16-value reopen and a separate 16-value explicit-sync-ready child receiving SIGKILL without close. slab records warm_restarts=1, log warm_restarts=0, both unclean_resets=0, and no missing/unexpected/corrupt values.

A separate default-off control discovers all five optional M3 cases and returns 5 SKIPs / 0 executed / 0 FAIL. An existing root is rejected with expected rc=1, without repeating its workload. Public CI has no such private NVMe roots or HCA assignment, so its legitimate opt-out SKIPs are not being presented as physical-HCA acceptance.

Intermediate fixture diagnosis

An earlier one-extent fixture allowed ordinary slab mixed-class pressure to evict the two small values before clean close; reopen correctly restored only the two large residents. Original failed source, logs and persistent slot identities were retained. The corrected four-extent fixture adds stronger resident-count checks (Count == i + 1 after every initial PUT and Count == 4 after reopen) before full key/length/byte verification. It still permits an empty extent to be rebound; the intended bound is that the required values are not evicted by rebinding an extent that still holds them.

Boundaries

No performance ranking or SLO, cross-host/two-port, power-loss, unsynchronized-write durability, cold-cache, whole-M3, production or publication-ready claim is made. The explicit-sync crash fixture does not establish power-loss or unsynchronized-write durability. Maintained full regression and integrated review remain separate gates for this draft.

- Exercise real RDMA full-payload writes and reads with slab and log stores on opt-in NVMe roots.
- Verify clean reopen, known-miss behavior, lease teardown and integrity counters without changing defaults.
@ketor

ketor commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

Validation update for exact head d59570c5bcb2223a20234ee58964ad5f8b68de72:

  • Public CI run 46186699131 completed with 13/13 checks successful (event=pull_request, status=completed, conclusion=success). Run/check-run and job APIs were recorded locally.
  • Maintained full native Release/RDMA/io_uring regression ran on this exact candidate with at-launch main 1b3b00f7df5b921b3a70a7baf9d908bb4badca73: discovery=2112, selected/executed=2106 after the canonical six exclusions. Direct per-case JUnit independently recomputes 2007 PASS / 99 SKIP / 0 FAIL.
  • Every one of the 2106 raw cases has a matching JUnit identity/status. Six literal Skipped name-only parser false positives were corrected only after independent CTest Passed and JUnit status=run proof. The 32 inherited required native cases have direct PASS proofs; all five optional M3 cases have valid default-off JUnit skips and were not executed in that mode.
  • The separate private physical matrix on the previously reviewed e1595c66/d75063a3 remains the source of the InfiniBand ib8s400p0 + dm-2 -> nvme1n1 payload evidence described in the draft (8 selected PASS, 16 payload records/20,159,600 bytes, 32 explicit-sync/SIGKILL values per engine). It is not claimed as another HCA run against d59570c5, and public cloud CI is not being described as private HCA/NVMe execution.
  • The full unit and exclusive claim were released, with no remaining owned test processes. Source/worktree, build inventory and original witness artifacts are preserved for integrated review.

No performance, cross-host/two-port, power-loss, unsynchronized-write, whole-M3 or production acceptance conclusion is made. This remains a draft pending integrated review.

@ketor

ketor commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

Independent final integration review is GO / 0 must-fix. Report: final-integration-review-d59570c5/review.md, SHA256=4daf21140218a68da0c1137b22dbdf41887d4837dc8796f18a6f80759f50c46a.

Exact candidate d59570c5bcb2223a20234ee58964ad5f8b68de72, tree 22e342d65ed9448b664e0c041ffb3da1f534c38d, sole parent/current main 1b3b00f7df5b921b3a70a7baf9d908bb4badca73, has one +347-line default-off integration-test change and no product/transport or CI-default modification. The replay preserves the reviewed source blob and stable patch-id; it does not discard earlier base-limited evidence.

Previously reported exact-head validation remains applicable:

  • public CI run 46186699131: 13/13 successful checks;
  • maintained full discovery 2112, selected/executed 2106, 2007 PASS / 99 SKIP / 0 FAIL after the canonical six exclusions;
  • 32 inherited required PASS proofs and five default-off source M3 SKIPs with no opt-in execution;
  • actor-observed 31,389 independent property checks and 670 preserved build-file hashes across the raw package.

The older physical InfiniBand/NVMe proof remains historical e1595c66/d75063a3 evidence only, not a new d59570c5 HCA run. This approval covers only that test integration; it is not a performance, cross-host/two-port, power-loss/unsynchronized-write, whole-M3 or production conclusion. Ready is requested for the normal conditional merge queue, without an administrator merge bypass.

@ketor
ketor marked this pull request as ready for review November 28, 2026 21:12
@ketor
ketor added this pull request to the merge queue Nov 28, 2026
Merged via the queue into dingodb:main with commit a253a58 Nov 28, 2026
13 checks passed
@ketor
ketor deleted the agent/m3-rdma-integrity-1b3b00f7-acceptance branch November 28, 2026 21:17
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