Skip to content

refactor(transport): move RemainingMs definition - #639

Draft
ketor wants to merge 1 commit into
dingodb:mainfrom
ketor:lr/trn23-remaining-ms-77ce90e
Draft

ketor wants to merge 1 commit into
dingodb:mainfrom
ketor:lr/trn23-remaining-ms-77ce90e

Conversation

@ketor

@ketor ketor commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Move the existing 8-line RdmaTransport::RemainingMs definition from rdma_transport.cc to rdma_transport_ops.cc.
  • Preserve the declaration, callers, timeout/deadline arithmetic, includes, public API, state, and defaults.

Current exact candidate

Raw head: dc9ead093ff655cb146cea309ad1e3b4662d1c6f
Parent/base: bbda545dbb1737ba6f1e7dad52b23c489dd80b8d
Tree: 81d24c5133e7c7f23c63c02f0741fac6acd07746

Only two existing implementation files change, +9/-9 including the trailing separator. Replay reconstruction removes and inserts the same 431-byte definition (SHA-256 bed6466ed9aa990fee313e55f2ddbbf9bbb97f1a61e2b862bd6ed333a4772f33). The changed implementation blobs and public header are identical across the old and new bases; old/new patch-id is 1c689b77e0aeb797c5e2ed3950d61a718449eb0e. The candidate implementation blobs also exactly match the earlier candidate.

Historical candidate 1621f40ecf59a7f0fba801c75d23465845819b41 was based on 77ce90e86ad57fd3232627fcd02ecf507e804510; its CI run 46276200454 is retained as old-head evidence only. Its complete-history bundle and source archive were verified before the remote branch was updated with an explicit old-head lease. No production semantics, error generation, lease behavior, test, or build configuration is changed.

Validation

  • Current-base exact byte-level remove/insert reconstruction and old/new patch-id equality: PASS.
  • Candidate rdma_transport_ops.cc direct C++17 RDMA syntax compile: PASS.
  • Fresh current-base local builds, object/link comparisons, and public CI are reported separately for raw head dc9ead093ff655cb146cea309ad1e3b4662d1c6f.
  • Physical focused/maintained-full remains a separately authorized gate; this draft is not queued or merged.

@ketor

ketor commented Nov 29, 2026

Copy link
Copy Markdown
Contributor Author

Validation for exact head 1621f40ecf59a7f0fba801c75d23465845819b41 (tree 9ea5539922be33c2ddac86c8ea8946b3feac8779):

  • Source: only the two existing .cc files, +9/-9; independent byte reconstruction removes/inserts the same 431-byte RemainingMs definition. Headers, includes, callers, state, defaults, and deadline arithmetic are unchanged.
  • Local GNU 15.2 Release RDMA+io_uring builds: exact base and candidate each completed 391/391 build steps with matching normalized changed-TU compile profiles.
  • Object/link: both dfkv and dfkv_core lose exactly one RemainingMs definition from the main object and gain one in the operations object; all 152 RdmaTransport member-name multiset entries remain equal. Dynamic defined/undefined deltas are zero. RemainingMs remains one FUNC GLOBAL DEFAULT definition (159 B each), SONAME remains libdfkv.so.2, DT_NEEDED is unchanged, and ldd -r is clean for base/candidate libraries plus the checked consumers.
  • RDMA/OFF + io_uring/OFF: 365/365 build steps, zero changed-TU compile commands, zero dynamic RdmaTransport members, and clean ldd -r for the shared library and seven ordinary consumers.
  • Public focused coverage on Soft-RoCE: RdmaOpDeadline.ASilentNodeFailsWithinTheOperationTimeout, RdmaOpDeadline.ABootstrapCutShortByTheDeadlineChargesNothing, RdmaPeerRailDown.ATimedOutRefusalCheckDoesNotHoldTheNode, and RdmaLoopback.AStalePoolRetryGetsTheWholeTimeoutAgain each show one RUN and one OK, with 4 PASS / 0 SKIP / 0 FAIL in ordinary and 4 PASS / 0 SKIP / 0 FAIL in TSan. Raw job log SHA-256: cf9944e40501692338c363021f47fee9b45aa0fecac0bde190bfc22d7ccbabdb.
  • Public CI run 46276200454: 13/13 SUCCESS for this exact head.

Physical maintained focused/full and final integration review remain separate gates. This comment does not claim queue, merge, performance, production, or overall TRN-23 completion.

@ketor
ketor force-pushed the lr/trn23-remaining-ms-77ce90e branch from 1621f40 to dc9ead0 Compare November 29, 2026 16:43
@ketor

ketor commented Nov 29, 2026

Copy link
Copy Markdown
Contributor Author

Fresh validation for replayed head dc9ead093ff655cb146cea309ad1e3b4662d1c6f on current base bbda545dbb1737ba6f1e7dad52b23c489dd80b8d (tree 81d24c5133e7c7f23c63c02f0741fac6acd07746):

  • Source replay: only the same two .cc files, +9/-9. The current-base remove/insert reconstruction is byte exact, candidate implementation blobs match old raw 1621f40e, and git range-diff is 1: 1621f40 = 1: dc9ead0. Definition SHA-256 remains bed6466ed9aa990fee313e55f2ddbbf9bbb97f1a61e2b862bd6ed333a4772f33; old/new patch-id is 1c689b77e0aeb797c5e2ed3950d61a718449eb0e.
  • Fresh local GNU 15.2 Release RDMA+io_uring builds: exact new base/candidate each 391/391 steps with matching normalized changed-TU compile profiles. RDMA/OFF+io_uring/OFF: 365/365, no changed-TU compile commands and clean ordinary-consumer links.
  • Fresh object/link comparison: both dfkv and dfkv_core move exactly one RemainingMs definition from main to ops; all 152 RdmaTransport member-name multiset entries remain equal. Only the expected main undefined helper reference and ops undefined steady-clock reference change. Dynamic defined/undefined deltas are zero, SONAME and DT_NEEDED are unchanged, and checked base/candidate libraries plus consumers have clean ldd -r.
  • Fresh Soft-RoCE direct cases: the four operation-deadline/refusal/stale-retry cases each have one RUN and one OK in ordinary and TSan, totaling 4 PASS / 0 SKIP / 0 FAIL in each profile. Raw log SHA-256 is 4080fb2f39667abb3e1d28b80b4c30e21ee4bdf7364588daa36837dcfb978fd2.
  • The four new-base coverage cases (ReadyMustNotReusePreviousGeneration, RamTier drop publication, and both explicit-slab directory ownership cases) also ran as private backend-independent ordinary units: 4 PASS / 0 SKIP / 0 FAIL, with raw XML retained.
  • New public CI run 46285633764 is 13/13 SUCCESS for dc9ead093ff655cb146cea309ad1e3b4662d1c6f. Earlier run 46276200454 belongs only to old raw/base and is not inherited.

Physical focused/maintained-full, final integration review, and any queue decision remain separate gates. No physical device, claim, staging, queue, merge, performance, production, or wider TRN-23 completion is claimed.

- Relocate the existing helper body into the transport operations unit.
- Preserve the declaration, callers, and deadline arithmetic.
@ketor
ketor force-pushed the lr/trn23-remaining-ms-77ce90e branch from dc9ead0 to 3564dd1 Compare November 30, 2026 16:08
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