Repository navigation
fix(tae): stop WAL append retries on replay cancellation - #33032
Closed
MatrixAdventurer wants to merge 2 commits into
Closed
MatrixAdventurer wants to merge 2 commits into
MatrixAdventurer wants to merge 2 commits into
Conversation
MatrixAdventurer
requested review from
XuPeng-SH and
jiangxinmeng1
as code owners
November 21, 2026 01:20
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? |
Contributor
|
This pull request is closed, so it cannot be queued. Reopen it to get the box back. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Which issue(s) this PR fixes
Fixes #32912
What this PR does / why we need it
wrappedClient.Appendpreviously ignored cancellation while sleeping between failed LogService append attempts. TN WAL replay cancellation could therefore continue retrying until the configured retry budget expired.This change checks the parent context before each attempt and after failures, and replaces the unconditional retry sleep with a context-aware timer. Successful appends still win if cancellation races with a successful backend return.
Testing
go test -race ./pkg/vm/engine/tae/logstore/driver/logservicedriver -run '^TestAppend(CancellationDuringBackoff|RetriesWithLiveParent)$' -count=20go test -race ./pkg/vm/engine/tae/logstore/driver/logservicedriver -count=1git diff --checkIndependent review on latest main
a5140aa: APPROVE, no blocking findings.