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
[CI] Netty4HttpServerTransportTests testChannelAcceptorCannotTamperThreadContext failing #108193
Comments
Pinging @elastic/es-security (Team:Security) |
Seems to fail consistently on Windows hosts. Will try to look closer. |
Added handling of the following `IOException` in `Netty4HttpClient`: ``` Caused by: java.io.IOException: An established connection was aborted by the software in your host machine ``` Resolves: elastic#108193
@Tim-Brooks do you have any tips on this one please? |
I imagine it is because the way a rejected channel is closed on windows breaks the assertion for caught exceptions in the client. @Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
if (cause instanceof PrematureChannelClosureException || cause instanceof SocketException) {
// no more requests coming, so fast-forward the latch
fastForward();
} else {
ExceptionsHelper.maybeDieOnAnotherThread(new AssertionError(cause));
}
} Windows appears to be returning this as |
I've re-opened #108362, which handles this |
Another failure : https://gradle-enterprise.elastic.co/s/gdq6e3zg6ggea |
This commit adds special handling for the `java.io.IOException: An established connection was aborted by the software in your host machine` in `Netty4HttpClient#exceptionCaught ` method. This exception only occurs when running tests on Windows hosts Resolves: #108193
This commit adds special handling for the `java.io.IOException: An established connection was aborted by the software in your host machine` in `Netty4HttpClient#exceptionCaught ` method. This exception only occurs when running tests on Windows hosts Resolves: elastic#108193 (cherry picked from commit 93ec9d6)
This commit adds special handling for the `java.io.IOException: An established connection was aborted by the software in your host machine` in `Netty4HttpClient#exceptionCaught ` method. This exception only occurs when running tests on Windows hosts Resolves: #108193 (cherry picked from commit 93ec9d6)
Build scan:
https://gradle-enterprise.elastic.co/s/yqf7kpf3qc4jg/tests/:modules:transport-netty4:test/org.elasticsearch.http.netty4.Netty4HttpServerTransportTests/testChannelAcceptorCannotTamperThreadContext
Reproduction line:
Applicable branches:
main
Reproduces locally?:
No
Failure history:
Failure dashboard for
org.elasticsearch.http.netty4.Netty4HttpServerTransportTests#testChannelAcceptorCannotTamperThreadContext
Failure excerpt:
The text was updated successfully, but these errors were encountered: