Repository navigation
fix: propagate data branch CSV copy errors - #26149
mergify[bot] merged 2 commits into
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? |
53a9937 to
38fd535
Compare
38fd535 to
2fa261d
Compare
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep review completed; no blocking issues found on head 2fa261d. The copy failure is propagated before index/wait-group mutation, a copied batch is cleaned and the index is rolled back when conversion submission fails, and cancellation prevents the writer from waiting on an unreachable index gap. Verified the new failure/cancellation tests under the race detector for three runs, the full frontend package, go build, go vet, diff checks, and green CI. The branch is currently behind main, but main has no overlapping changes in the modified files.
Merge Queue Status
This pull request spent 1 hour 15 minutes 6 seconds in the queue, including 41 minutes 18 seconds running CI. Required conditions to merge
|
`DATA BRANCH DIFF ... OUTPUT FILE` previously discarded `Batch.Dup` errors and could submit a nil batch to the CSV conversion worker. Changes: - return the original batch-copy error before mutating worker or index accounting; - clean an untransferred copied batch and roll back accounting when worker submission fails; - cover copy failure and submission failure with real mpool and worker-pool barriers. Validation: - `go test ./pkg/frontend -run '^TestSubmitCSVBatchForConversion' -count=3` - `go test ./pkg/frontend -count=1` - `go test -race ./pkg/frontend -run '^TestSubmitCSVBatchForConversion' -count=1` - `git diff --check` Non-goals: - no change to successful CSV formatting, ordering, or file naming; - no change to the ordinary export path. Approved by: @XuPeng-SH
`DATA BRANCH DIFF ... OUTPUT FILE` previously discarded `Batch.Dup` errors and could submit a nil batch to the CSV conversion worker. Changes: - return the original batch-copy error before mutating worker or index accounting; - clean an untransferred copied batch and roll back accounting when worker submission fails; - cover copy failure and submission failure with real mpool and worker-pool barriers. Validation: - `go test ./pkg/frontend -run '^TestSubmitCSVBatchForConversion' -count=3` - `go test ./pkg/frontend -count=1` - `go test -race ./pkg/frontend -run '^TestSubmitCSVBatchForConversion' -count=1` - `git diff --check` Non-goals: - no change to successful CSV formatting, ordering, or file naming; - no change to the ordinary export path. Approved by: @XuPeng-SH
`DATA BRANCH DIFF ... OUTPUT FILE` previously discarded `Batch.Dup` errors and could submit a nil batch to the CSV conversion worker. Changes: - return the original batch-copy error before mutating worker or index accounting; - clean an untransferred copied batch and roll back accounting when worker submission fails; - cover copy failure and submission failure with real mpool and worker-pool barriers. Validation: - `go test ./pkg/frontend -run '^TestSubmitCSVBatchForConversion' -count=3` - `go test ./pkg/frontend -count=1` - `go test -race ./pkg/frontend -run '^TestSubmitCSVBatchForConversion' -count=1` - `git diff --check` Non-goals: - no change to successful CSV formatting, ordering, or file naming; - no change to the ordinary export path. Approved by: @XuPeng-SH
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #26128
What this PR does / why we need it:
DATA BRANCH DIFF ... OUTPUT FILEpreviously discardedBatch.Duperrors and could submit a nil batch to the CSV conversion worker.Changes:
Validation:
go test ./pkg/frontend -run '^TestSubmitCSVBatchForConversion' -count=3go test ./pkg/frontend -count=1go test -race ./pkg/frontend -run '^TestSubmitCSVBatchForConversion' -count=1git diff --checkNon-goals: