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
Fix Java Unit Test docs example in Unix Domain Sockets #2119
Conversation
build failure should be fixed by #2123 |
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.
LGTM
.map(s -> s + "!!!\n") | ||
.map(ByteString::fromString); | ||
// server logic ... | ||
// #outgoingConnection |
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.
Good to keep the actual implementation out of the docs
// #outgoingConnection | ||
ByteString sendBytes = ByteString.fromString("Hello"); |
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.
(this line could be moved down to below the part that makes it into the docs)
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.
👍
1f92892
to
e1547ff
Compare
The lone Java test in unix-domain-socket used for docs has always failed, but we never noticed it because we didn't block on stream completion before the test completed. The blocking was added #2040 (https://github.com/akka/alpakka/pull/2040/files#r368017011), but the test failure got confused with a transient test failure and the PR was merged.
Changes
jnr-unixsocket
will create the socket files on our behalf, if the file already exists then we'll observe anAddress in use
exception (https://travis-ci.com/akka/alpakka/jobs/277967218#L358)ByteString
like the Scala docs example does.