Skip to content

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

Closed
ketor wants to merge 1 commit into
dingodb:mainfrom
ketor:agent/m3-rdma-integrity-d75063a3-acceptance
Closed

ketor wants to merge 1 commit into
dingodb:mainfrom
ketor:agent/m3-rdma-integrity-d75063a3-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.

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

Closing as superseded by #629, without deleting history.

#624's merge changed main to 1b3b00f7; #629 replays the identical +347-line test-only patch onto that actual current base. Source SHA256=d95071261cf03f6966669d8cb9b5462aaf3c67a944305a8967b3f5ba23e148c8, source blob=1fe0377f7f8a7859b3fc6e112ccc8be85dcd7fda, and stable patch-id=4b0d1886ba4a68dcc55c2055d0f2f3d877684797 are unchanged.

This does not discard the old implementation or private focused proof. Original branch/source/recovery bundles, comments, and the base-limited e1595c66/d75063a3 physical InfiniBand/NVMe evidence remain retained under the private review package. An intermediate small-extent-run failure and its fixture-eviction analysis also remain preserved.

Fresh #629 has independent current-main validation: CI run 46186699131 13/13 successful checks, maintained full discovery=2112/executed=2106 with 2007 PASS / 99 SKIP / 0 FAIL, and all five opt-in source M3 instances legitimately SKIP by default. Those results, like the original eight selected physical PASS cases, have different provenance and are not combined into a claim of another HCA run.

#629 is now the sole current draft candidate for this test-only M3 change; no performance, cross-host/two-port, power-loss, whole-M3, or production conclusion is implied.

@ketor ketor closed this Nov 28, 2026
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