Closed
Description
This just happened to me on master
in org.elasticsearch.transport.netty4.SimpleNetty4TransportTests.testTcpHandshake
:
1> [2019-07-09T18:18:18,000][INFO ][o.e.t.TransportService ] [testTcpHandshake] publish_address {127.0.0.1:43051}, bound_addresses {[::1]:48024}, {127.0.0.1:43051}
1> [2019-07-09T18:18:18,049][INFO ][o.e.t.TransportService ] [testTcpHandshake] publish_address {127.0.0.1:57712}, bound_addresses {[::1]:45963}, {127.0.0.1:57712}
1> [2019-07-09T18:18:18,814][INFO ][o.e.t.n.SimpleNetty4TransportTests] [testTcpHandshake] after test
2> REPRODUCE WITH: ./gradlew :modules:transport-netty4:test --tests "org.elasticsearch.transport.netty4.SimpleNetty4TransportTests.testTcpHandshake" -Dtests.seed=CEB10792715A5ADB -Dtests.security.manager=true -Dtests.locale=nl-BE -Dtests.timezone=Africa/Lome -Dcompiler.java=12 -Druntime.java=12
2> BindTransportException[Failed to bind to [66000-66100]]; nested: IllegalArgumentException[port out of range:66100];
Caused by:
java.lang.IllegalArgumentException: port out of range:66100
Doesn't reproduce, but I suspect that this might have something to do with the number of VMs the tests execute causing random in MockTransportService
to be selected from outside the valid port range.