Skip to content

refactor(rdma): move negotiated depth definition - #623

Merged
ketor merged 1 commit into
dingodb:mainfrom
ketor:lr/trn23-note-negotiated-depth-df500248
Nov 28, 2026
Merged

ketor merged 1 commit into
dingodb:mainfrom
ketor:lr/trn23-note-negotiated-depth-df500248

Conversation

@ketor

@ketor ketor commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Scope

This is a draft for verification, not a merge-ready result. Exact raw head 9a34ac3ff48b63784ae8ec49fd1654b05a810259, tree a72d69448922278af7ac17ae3d667261beab8b11, parent df5002482c45d1e86d99e14aa95f9f4718e54882.

Moves only the existing private RdmaTransport::NoteNegotiatedDepth definition from rdma_transport.cc to the existing rdma_transport_ops.cc, directly after the existing LearnedDepth definition. It is a nine-line, 424-byte verbatim state-writer relocation (SHA-256 4defc1132d396ca325179ac880e58f171319e6eee50e418444ad649fd9773e51). Each translation unit changes by exactly 10 lines /425 bytes. No header, public interface, per-instance state, mutex, depth_mu_, learned maps, caller, logging, resource-budget refund ordering, defaults, CMake or tests change.

The separate mutex and both learned maps still belong to the same transport instance across translation units; no TU-local cache, wrapper or fallback is introduced. remote.depth == 0 still returns immediately, updates use the appropriate control/data map only for missing or smaller remote values, and caller-side budget replacement/refund/text logging stays at the original call site.

Source evidence already independently checked

  • Only the two intended .cc files differ from the exact parent.
  • Independent reconstruction reproduced rdma_transport.cc (201,572 B, 4,687 lines, blob f21a3bc0945770fe31fe5c430a7af56c13f9734c) and rdma_transport_ops.cc (8,326 B, 210 lines, blob 2ab34a85199df5032306999feb2cc9f64f84beb4) byte-for-byte.
  • Independent source-only review: GO / zero must-fix findings, verifying the body, header declaration, per-instance locking and unchanged caller-side clamp/logging/refund/accounting order. LSP semantic indexing was unavailable due to missing clangd project configuration; the review used literal Git-object evidence and bounded direct source inspection.

Verification still in progress

Physical RDMA focused tests, baseline/candidate linked-object comparisons, RDMA+io_uring=OFF build/link, a fresh current-main full regression, and final independent evidence review are still being performed. This draft deliberately does not claim those passed, is not being marked ready for review, and is not being queued for merge. Public CI for this exact head is expected to run in parallel. A final evidence-backed validation summary is required before any ready/merge action.

This is one helper relocation only, not an overall TRN-23/M6, production, universal binary/ABI/performance or concurrency claim.

- Keep the private depth writer byte-identical in the existing ops translation unit.
@ketor

ketor commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

Final verification for head 9a34ac3ff48b63784ae8ec49fd1654b05a810259 (tree a72d69448922278af7ac17ae3d667261beab8b11):

  • Literal source scope: only src/transport/rdma_transport.cc and src/transport/rdma_transport_ops.cc changed. The same complete 9-line / 424-byte NoteNegotiatedDepth definition (SHA-256 4defc1132d396ca325179ac880e58f171319e6eee50e418444ad649fd9773e51) moved between them. No header, declaration, anchor, caller, API, default-behavior, wire-protocol, CMake, or test change is present.
  • Real physical probe: 34/34 assertions passed, 0 failures, bound to the exact candidate. It exercised server depth 1 / client depth 4, negotiated clamping and 77,824-byte registered-memory accounting, then explicit Stop() teardown of all three active connections to zero.
  • Maintained full regression: 2,007 PASS / 98 SKIP / 0 FAIL across 2,105 executed cases; all 32 required cases actually ran and passed. JUnit and CTest results were independently reconciled.
  • Public CI: run 46171850678 completed with 13/13 jobs successful on this exact head.
  • Final integration review: GO, 0 must-fix findings; review SHA-256 7ffbeb7bd02498fb1ed0ed824cca8dc1b61acde27b5ded822158cace7d987a43.

Scope is only this pure helper relocation and the evidence above. This does not claim completion of M2, M3, M5, all of TRN-23 or TRN-24, or production readiness. Ready for the normal merge-queue decision; this comment is not a merge claim.

@ketor
ketor marked this pull request as ready for review November 28, 2026 19:27
@ketor
ketor added this pull request to the merge queue Nov 28, 2026
Merged via the queue into dingodb:main with commit d75063a Nov 28, 2026
13 checks passed
@ketor
ketor deleted the lr/trn23-note-negotiated-depth-df500248 branch November 28, 2026 19:34
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