The RabbitMQ lifecycle test fails when the broker container resets the first connection after its port opens #414
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#414
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 happened
RabbitMqConnectionLifecycleTests.RemoveShutdownHandler_OnADisposedConnection_DoesNotThrowfailed once on the Linux runner, in the Test .NET job of the pull-request run 1544 (PR #410, a change to the release script and CONTRIBUTING.md that touches no .NET code):The test failed after 20 ms, so nothing timed out: the broker's port accepted the connection and reset it. The runner's load average was about 30.
Likely cause (not proven)
The class starts one RabbitMQ container per test and waits with
Wait.ForUnixContainer().UntilInternalTcpPortIsAvailable(5672). That only says something listens on the port inside the container. It does not say the broker answers an AMQP handshake, and the test connects through the mapped host port, which the Docker proxy accepts on its own.The other two tests in the class go through
RabbitMqDnsServerEventBrokerTransport, which reconnects, or poll until the transport is connected. This test, and theadminconnection inConnect_WhenTheExchangeDeclarationIsRefused_DoesNotLeaveConnectionsOpen, callConnectionFactory.CreateConnectionAsync()once with no retry.Wanted
rabbitmq-diagnosticscheck inside the container, or waits for the broker's "startup complete" log line; pick what the reading of the image supports and say why in a comment).RequiresDockertrait.Related: #406, #402, #396 (other tests that failed only on a loaded runner).