Skip to content

test(rdma): cover posted SG failure and acquire ownership - #636

Draft
ketor wants to merge 1 commit into
dingodb:mainfrom
ketor:lr/trn31-sg-post-failure-20261129
Draft

ketor wants to merge 1 commit into
dingodb:mainfrom
ketor:lr/trn31-sg-post-failure-20261129

Conversation

@ketor

@ketor ketor commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Scope

Test-only observability for two RDMA ownership/completion boundaries, integrated onto actual current main bbda545dbb1737ba6f1e7dad52b23c489dd80b8d.

  • Candidate: 51444f6716a50284c8172ad24fbc3b8125f2157d
  • Tree: 3f406a6f3e9998fadab04393d5f119c34ca94bc6
  • Parent/base: bbda545dbb1737ba6f1e7dad52b23c489dd80b8d; base tree: 0ad888a7e996f5091625670e264e91b9e7a80883
  • Only test/transport/rdma_loopback_test.cc: +98/−0
  • The complete combined patch is byte-identical to previous raw 4c7088b…, 40d26a0…, and earlier db3d5143…; the published test file is byte-identical to the owned worktree. No production, fused-generation, directory-ownership or RamTier hunk is imported into this patch.

TRN-31: later posted SG failure preserves earlier success

RdmaLoopback.CacheFromMultiKeepsEarlierSuccessAfterPostedFailureWithoutReplay uses two exactly-4 KiB, one-segment inline sources. The second posted completion receives the existing endpoint-completion fault. The case requires:

  • {kOk, kIOError}, retaining item0's already-completed success;
  • exactly one server direct-cache call for each item;
  • exactly two posted writes, with no replay;
  • one fresh connection and zero stale-pool retries;
  • exact item0 payload readback, without asserting item1 nonexistence.

TRN-32: fresh Acquire result metadata and ownership

RdmaLoopback.FreshAcquireResultRetainsMetadataAndOwnership returns the complete existing AcquireResult and checks all six fields: conn, from_pool, attempted_rail, failure, status, and device_frame_closed. It then performs exactly one ReleaseData, observes the sole pooled connection, and performs exactly one DropAllPooled, requiring endpoints, QPs, WR slots, and registered bytes to return to the pre-acquire baseline.

No defaults, production headers/APIs, retry/lease behavior, global controls, or production semantics are changed.

Current 51444f6… verification status

  • Exact-head public CI run 46286092812 completed 13 success / 13, including RDMA job 141418949820. Both new target cases passed in ordinary (6/8 ms) and true TSan (1011/20 ms) Soft-RoCE execution. This is the actual new-base result, not permission to erase the separate real op26 failure on raw 4c7088b…; independent source-controlled diagnosis still distinguishes natural lookback, production publication/index state, and response/chunk behavior. fix(rdma): reject reused generation in fused READY #640/test(cache): synchronize RamTier loss readiness #644 evidence and later timing are not substituted for PR636's own validation.
  • The unchanged RDMA patch and harness fresh identities were checked statically, with all previous lifecycle corrections retained; fresh v5 offline fixtures are again 2 accepted / 15 rejected. Proposed root is /mnt/disk1/dfkv-test/pr636-acquire-result-51444f6-r1, with separate ordinary/TSan units and the same 1800-second overall/900-second native caps.
  • Zero physical staging/claim/build/RDMA and zero private focused/full execution for this new head. Physical ordinary→TSan still awaits a new exact-head/unit/root Main GO; maintained full always requires a separate later grant. This is a draft, not queued or merged.

Previous 4c7088b… verification status (raw red remains a separate open diagnosis)

  • Exact-head public CI run 46283346024 reached first terminal 12 success / 1 failure, not 13/13; no rerun was requested. Generic TSan job 141410287274 passed on the test(cache): synchronize RamTier loss readiness #644-fixed main, but RDMA job 141410287290 failed in step 11 on existing RdmaLoopback.RemovedWithinAgesIsAnsweredOverRdma: rdma_loopback_test.cc:2161 observed kRemovedAgeNone (4294967295). The complete raw failed-step log is retained. The fixture explicitly sleeps 300 ms before its remove/write/query sequence but uses the 200 ms lookback, so the observation requires independent op26 fixture/product review rather than an environment-flake conclusion or a silent threshold change. Both new target cases still directly ran and passed in ordinary (4/7 ms) and TSan (1052/16 ms) Soft-RoCE execution; that does not erase the other required-job failure or test(cache): synchronize RamTier loss readiness #644's separate evidence.
  • Independent review returned GO_SOURCE_STATIC for the unchanged source patch and rebound harness, with all three previous harness findings closed. The new-base harness retains the reviewed lifecycle/build/FD/JUnit checks and has fresh static checks plus 2 accepted / 15 rejected offline fixtures. The old loaded-manager, loaded-MainPID and missing-XML-attribute fixes were explicitly reviewed and retained. Fresh proposed physical identities are /mnt/disk1/dfkv-test/pr636-acquire-result-4c7088b-r1 and dfkv-pr636-acquire-result-4c7088b-r1-{ordinary,tsan}.service, each with the 1800-second unit cap and separate 900-second native cap.
  • Zero physical staging/claim/build/RDMA and zero private focused/full execution for this new head. Physical ordinary→TSan requires Main's new exact-head/unit/root GO; maintained full requires a separate subsequent grant.
  • This remains a draft, not queued or merged.

Previous 40d26a0… verification history (not evidence for the new head)

  • Earlier joint source integration and private-v4 runner reviews were GO for their source/harness scope; those are not runtime acceptance for this new head.
  • The owned exact-head harness preserves that strict two-case contract and has independent static/offline GO after closure of three review findings. Its final offline suite is 2 accepted / 15 rejected (original 2/11 and 2/12 revisions remain separately retained). The 1800-second per-unit overall timeout, real worker completion, separate manager/stdout journal identities, Started/Deactivated in both lifecycle modes, and explicit JUnit zero attributes remain mandatory. Native verbs FDs must also map by real character-device numbers to the selected physical HCA; missing FD/HCA evidence is rejected.
  • git diff --check, exact replay patch, published source, ancestry and complete-history bundle checks passed.
  • Zero private physical focused/full execution for this candidate. No private native focused or full-suite pass is claimed here.
  • Exact-head public run 46276169500 attempt 1 ended 12 success / 1 failure, not 13/13. Generic TSan job 141387794202 failed only RamTierFlushFailure.FailuresAfterRefusalsStillEndInALoss: test/cache/ram_tier_test.cc:2788 observed rt.healthy() == true instead of false, with CTest exit 8. Both new cases did run and pass in ordinary and TSan modes in the separate successful RDMA job 141387793977 (6/10 ms ordinary, 1011/20 ms TSan); that does not erase the other failure. A failed-job-only rerun was requested before a diagnostic hold was clarified, then cancelled in attempt 2 at 15:32:40Z and is not used as a result. Attempt-1 diagnostics, source/body/health-transition review, the exact-base successful control, and the cancelled-attempt record are all retained; no root-cause conclusion is asserted. Soft-RoCE does not substitute for a coordinated physical-device run.
  • This is a draft, not queued or merged.

ketor added a commit to ketor/dfkv that referenced this pull request Nov 29, 2026
- Preserve earlier successful inline SG results after a later posted write failure without unsafe replay.
- Retain fresh AcquireResult metadata and release exactly the returned connection, verifying complete pooled-resource cleanup.
- Replay PR dingodb#636 test-only coverage onto current main without changing production behavior.
@ketor
ketor force-pushed the lr/trn31-sg-post-failure-20261129 branch from 7d35173 to 40d26a0 Compare November 29, 2026 15:02
ketor added a commit to ketor/dfkv that referenced this pull request Nov 29, 2026
- Preserve earlier successful inline SG results after a later posted write failure without unsafe replay.
- Retain fresh AcquireResult metadata and release exactly the returned connection, verifying complete pooled-resource cleanup.
- Replay the unchanged PR dingodb#636 combined patch onto current main after the independent RamTier readiness fix.
@ketor
ketor force-pushed the lr/trn31-sg-post-failure-20261129 branch from 40d26a0 to 4c7088b Compare November 29, 2026 16:19
- Preserve earlier successful inline SG results after a later posted write failure without unsafe replay.
- Retain fresh AcquireResult metadata and release exactly the returned connection, verifying complete pooled-resource cleanup.
- Replay the unchanged PR dingodb#636 combined patch onto current main after independent RamTier readiness and fused-generation changes landed outside this patch.
@ketor
ketor force-pushed the lr/trn31-sg-post-failure-20261129 branch from 4c7088b to 51444f6 Compare November 29, 2026 16:48
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