New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: use copy of SocketUtil that does not use 127.x.y.255 addresses #3460
Conversation
Test FAILed. !!! Couldn't read commit file !!! |
} | ||
catch { | ||
case NonFatal(ex) => | ||
throw new RuntimeException(s"Binding to $addr failed with ${ex.getMessage}", ex) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Test FAILed. !!! Couldn't read commit file !!! |
…ka-http into better-errors-in-socket-util
Test FAILed. Pull request validation reportFailed Test SuitesTest result for
|
Got a result right away:
|
I can reproduce it manually in the docker container that you cannot bind ports on |
Though |
Test PASSed. |
case RANDOM_LOOPBACK_ADDRESS => | ||
// JDK limitation? You cannot bind on addresses matching the pattern 127.x.y.255, | ||
// that's why the last component must be < 255 | ||
if (canBindOnAlternativeLoopbackAddresses) s"127.20.${Random.nextInt(256)}.${Random.nextInt(255)}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix here
I'd say we merge it like this and if it holds water for a few days we can backport to Akka. |
Test PASSed. |
Seems to work fine on master and now needs a backport to release-10.1 and a fix in Akka itself. |
…akka#3460) (cherry picked from commit d68eaaf) # Conflicts: # akka-http-core/src/test/scala/akka/http/impl/engine/client/ConnectionPoolSpec.scala # akka-http-core/src/test/scala/akka/http/scaladsl/ClientServerSpec.scala # akka-http-core/src/test/scala/akka/http/scaladsl/ClientSpec.scala # akka-http-core/src/test/scala/akka/http/scaladsl/ClientTransportWithCustomResolverSpec.scala # akka-http-core/src/test/scala/akka/http/scaladsl/model/EntityDiscardingSpec.scala # docs/src/test/scala/docs/http/scaladsl/server/directives/CustomHttpMethodSpec.scala # docs/src/test/scala/docs/http/scaladsl/server/directives/TimeoutDirectivesExamplesSpec.scala
10.1 backport: #3469 |
It recently failed various times with this stack trace:
It's unclear why this could fail, so we add this for a round of builds to find out what the address is when it fails.