Repository navigation
fix(tae): complete WAL waiters before append fail-stop - #28014
Conversation
- Rename sample types to alloc_objects, alloc_space, inuse_objects, inuse_space; default inuse_space - Set PeriodType, Period, TimeNanos, and Mapping.HasFunctions in Profiler.Write - Add heap_profiler_pprof_test for profile.Parse round-trip - Add [malloc] block to mo_checkin_regression_tke.yaml for tp/dn Made-with: Cursor
Made-with: Cursor
|
针对本轮语义预检已推送修复(head
本地 |
|
补充修复已推送,当前 exact head 为 针对此前“生产链路未覆盖”的意见,本 head 新增 新增验证:
PR 仍保持 Draft;待 CI 和 exact-head semantic preflight 重新完成后再请求正式 review。 |
|
大雾重重 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
Addressed both P1 findings at exact head
|
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep re-reviewed exact head 3b261e2 against base ffc8d9f.
The previous normal-traffic worker-handoff blocker is resolved. Submit now retries only ants pool overload and is interrupted by closeC; the deterministic tests cover both a saturated worker and the narrower interval after committer completion but before worker reuse. A close racing that retry returns an explicit terminal to the accepted entry and does not advance the committed DSN.
I audited Q1-Q3 across successful append, pre-append/append error, client acquisition, worker handoff, Close during an in-flight append, deadline expiry, and repeated Close. groupCommitter/LogEntryWriter has one entry owner; the first error notification clears the owned list, later wait-loop cleanup is idempotent, client return remains ordered after worker completion, and pending accounting reaches zero before normal teardown. The shared deadline starts before intake stop and no unbounded follow-up wait remains. WAL close errors propagate through DB, TAE storage, replica, and TN store shutdown.
Performance impact is bounded: no per-entry goroutine is added, the writer mutex is uncontended under its single-owner flow, and the 1 ms retry path is limited to worker saturation/handoff rather than the normal append body. I found no remaining correctness, leak, double-completion, hang, shutdown, or material performance blocker. Exact-head UT, SCA, coverage, proxy BVT, and pessimistic multi-CN BVT are green.
What type of PR is this?
Which issue(s) this PR fixes:
issue #28013
Related to issue #27945.
What this PR does / why we need it:
Problem
An accepted TAE WAL entry can wait indefinitely when serialization, callback, client acquisition, worker submission, or LogService append fails before the normal commit wait loop publishes its terminal state. Driver shutdown can also consume two independent timeout windows and then enter another unbounded wait.
Changes
groupCommitterthe single completion owner for every accepted entry in the group.ErrPoolOverloadduring normal worker handoff until the worker is reusable;closeCaborts that retry during shutdown.Compatibility and non-goals
Validation
ffc8d9f0625c76e87ba967984ce19db2d082b0ba→3b261e26737c3834ec71699c842bbb16bcca2c12.6d7c8be5988f0afcc994662dd1cdeb21f74091c7; the net PR diff is 7 files, 537 insertions, and 35 deletions.mo-cgo-test -listnames all three new lifecycle tests; each focused test passed under-race -count=10:TestCommitSubmissionWaitsForWorkerHandoff,TestSubmitCommitWaitsAfterCommitterCompletion, andTestCloseDeadlineIncludesIntakeAndWorkerDrain.pkg/vm/engine/tae/logstore/driver/logservicedriverowning-package race run passed at the same repaired tree.git diff --checkpassed; semantic preflight schema v6 passed at this exact head with diff hashf871859479cb5b9f8578b97b69113ce224c930719ab871339582024859e42115.QA decision
This PR is Ready for review. Human review, current CI, and the integration lifecycle check remain required before merge and issue closure.