A taken Docker host port costs the MongoDB replica set test host a retry, not the whole replica test class #399
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!399
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/386-mongodb-replica-host-port-retry"
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?
A host port that is taken when Docker binds it now costs the MongoDB replica set test host a retry with new ports, not every replica test. Test code only.
failed to bind host port 0.0.0.0:<port>/tcp: address already in usewhen the replica set's first member started, and all 21 tests of the five MongoDB replica classes failed in 1 ms.ReplicatedEngineHost.RetryOnPortConflictAsyncretries the first member's start with three new ports, at most five times, when the failure names a port conflict; any other failure surfaces at once. The three ports are drawn together, so they are distinct, and probed on every address, as Docker binds them. The other engine hosts let Docker pick the host port and need nothing.Verified
PortConflictRetryTests(4 tests on the helper) and the 21 MongoDB replica tests pass (25 of 25, on real containers); build 0 warnings; csharpier clean on the changed folders.Docker.DotNet.DockerApiExceptionmessage matches the retry's check and that a failed start is disposed with no stale state; accepted. Its low findings (loopback-only probe, possible duplicate ports, a missing summary) are fixed in the second commit.Closes #386
🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK