Repository navigation
test(logservice): establish heartbeat fixture readiness - #29173
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
PASS — reviewed exact head 1f19967 against base bc523de.
Read all changed hunks and traced readiness, proposal/application, the linearizable checker read, and fixture teardown. Readiness is established before the four independently bounded heartbeat calls; assertions verify applied payloads rather than only successful returns. Context and store cleanup remain effective on FailNow.
Reused completed focused/readiness, race-100 and owning-package evidence; exact-head CI is successful. This validates the fixture contract, not a proven historical timeout root cause or a production fix.
No P0/P1/P2 blockers found. Coverage was not used as a gate.
What type of PR is this?
Which issue(s) this PR fixes:
Related to #28923. This corrects the heartbeat test's fixture contract; it does not establish the cause of the historical 0.68-second failure or fix a production timeout defect.
What this PR does / why we need it:
TestAddHeartbeatstarted HAKeeper asynchronously and used one shared one-second context for four heartbeat operations. Make the intended test boundary explicit:No production code, shared fixture, timeout defaults, sleeps, or heartbeat retry loops change. Existing readiness cancellation/missing-shard/closed-host/no-quorum controls remain intact.
The exact pinned Dragonboat source was inspected separately. RTT quantization loses less than 10 ms; it does not explain the reported duration. An external deterministic diagnostic demonstrates premature logical expiration when a new shard admits a proposal before synchronizing its zero-origin clock with absolute host ticks, but this does not reconstruct the historical CI schedule. This PR does not mask or claim to repair that dependency behavior.
Validation (Go1.26.4/macOS arm64, verified native artifacts,
-p 2):pkg/logservicepackage passed (110.345s).Historical Ubuntu/amd64 reproduction remains unavailable. CI is pending; no CI wait performed.