Fix #74: drain-scoped import cancellation #83
No reviewers
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!83
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-74"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #74 (codex major + omp major-13): the repo-import leader ran on context.WithoutCancel(context.Background()), so drain could not cancel it and it could commit a manifest CAS after drain began.
What changed:
Verification: go test -race ./internal/repoimport/ ok, coverage 95.6% (>=95%); go test -race ./internal/wal/ ok (incl. -count=5); ./cmd/walhub ok; gofmt/vet clean. Scratch worktree from origin/main; main worktree untouched.