krishvishal opened a new issue, #3154:
URL: https://github.com/apache/iggy/issues/3154
The C# e2e job (`C# • e2e / run`) intermittently fails with three tests in
`IggyClusterFixture` unable to start their follower container.
## Cause
`Iggy_SDK.Tests.Integration.csproj` targets both `net8.0` and `net10.0`, and
`dotnet test` launches one test host **per TFM in parallel**. The two hosts run
as independent processes.
`IggyClusterFixture` picks eight host ports up front and publishes them to
Docker with `WithPortBinding(port, port)`, the host port and the
container-internal port have to match because the leader advertises
`127.0.0.1:{port}` in its redirect responses to clients.
`UsedPorts` is `static`, but "static" is per-process. The net8.0 and net10.0
hosts each have their own copy, so they can (and occasionally do) draw the same
number from the 10k-wide range. Whichever test host reaches Docker first gets
the bind; the other's follower container fails with `address already in use`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]