Stopping the cluster config backfill runner after it was disposed does not throw #373
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#373
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
What happens
Ninlil.Web.Tests.CurrentPasswordRateLimitTests.ChangeMyPassword_PastTheLimit_AnswersTooManyRequestsEvenForTheCorrectPasswordfailed once on the CI runner (pull-request run 1445, job Test .NET, 1 failed of 2353). The test's assertions passed; the failure is thrown while its second host is disposed at the end of the test (using WebApplicationFactory<Program> host = CreateHost();, line 126):What is known
ClusterConfigBackfillRunneris anIHostedServiceandIAsyncDisposablesingleton.DisposeAsynccallsStopAsyncand then disposes_shutdown.StopAsynccalls_shutdown.CancelAsync()with no check, so aStopAsyncthat runs afterDisposeAsyncthrows.StopAsyncon it. Which path does that is not known yet (a host that stops itself, a secondStopAsync, or the order insideWebApplicationFactory.DisposeAsync).StopAsyncwould throw the same way at shutdown.Wanted
StopAsynccan run afterDisposeAsynchere and say so in the pull request.StopAsyncafterDisposeAsyncdoes nothing and does not throw; a pass can still not start after either.CancellationTokenSourceand callStopAsyncfrom their dispose for the same shape, and fix those that have it.Acceptance
Ninlil.Dns.Server.Cluster.TestsandNinlil.Web.Testspass.Ghost referenced this issue2026-11-12 04:23:13 -05:00