Stopping the cluster config backfill runner after it was disposed does nothing instead of throwing #376
No reviewers
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil!376
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/373-backfill-stop-after-dispose"
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?
Stopping the cluster config backfill runner after it was disposed now does nothing instead of throwing
ObjectDisposedException. This is a product fix; it also removes a rare failure of the web tests.Ninlil.Web.Teststest failed while its second host was disposed, withThe CancellationTokenSource has been disposedatClusterConfigBackfillRunner.StopAsync.DisposeAsyncdisposed the runner's cancellation source, and a laterStopAsynccancelled it. Under the test host, theapp.Run()thread and the factory teardown both stop the same host, so a second stop can arrive after the container disposed the singletons. This path is reasoned from the code and from the same race described inDnsQueryProcessingPipeline; it was not reproduced in the web tests.DisposeAsyncstill stops the runner but no longer disposes the source, which holds no timer and no link. Stop and dispose are safe in any order and at the same time. No pass starts after either.StopAsyncthat would throw after dispose and found none.Verified:
ClusterConfigBackfillRunnerTestsfail without the fix and pass with it (coder and verifier both ran this).Ninlil.Dns.Server.Cluster.Testspassed 76/76.Ninlil.Web.Testswithout Docker tests: 2351 passed; the 2 failures areSpaFallbackTests, which need a built admin console the worktree does not have.Closes #373
🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK