Skip to content
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

IncompletePostTestCase is failing a lot on Windows #23642

Closed
famod opened this issue Feb 12, 2022 · 4 comments · Fixed by #23654
Closed

IncompletePostTestCase is failing a lot on Windows #23642

famod opened this issue Feb 12, 2022 · 4 comments · Fixed by #23654
Labels
area/housekeeping Issue type for generalized tasks not related to bugs or enhancements env/windows Impacts Windows machines
Milestone

Comments

@famod
Copy link
Member

famod commented Feb 12, 2022

Description

Just to mention a few recent failures:

[ERROR] io.quarkus.resteasy.test.IncompletePostTestCase.testIncompleteWrite  Time elapsed: 0.845 s  <<< ERROR!
java.net.ConnectException: Connection refused: connect
	at java.base/java.net.PlainSocketImpl.connect0(Native Method)
	at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:101)
	at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
	at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
	at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.base/java.net.Socket.connect(Socket.java:609)
	at java.base/java.net.Socket.connect(Socket.java:558)
	at java.base/java.net.Socket.<init>(Socket.java:454)
	at java.base/java.net.Socket.<init>(Socket.java:231)
	at io.quarkus.resteasy.test.IncompletePostTestCase.testIncompleteWrite(IncompletePostTestCase.java:36)

It starts with:

2022-02-11 22:54:16,687 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (executor-thread-117) HTTP Request to /post failed, error id: fcbec178-715a-4b0b-8981-62a6ee53fdf1-1: javax.enterprise.context.ContextNotActiveException
	at io.quarkus.arc.impl.ClientProxies.getDelegate(ClientProxies.java:46)
	at io.quarkus.security.runtime.SecurityIdentityAssociation_ClientProxy.arc$delegate(Unknown Source)
	at io.quarkus.security.runtime.SecurityIdentityAssociation_ClientProxy.setIdentity(Unknown Source)
	at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.dispatch(VertxRequestHandler.java:124)
	at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler$1.run(VertxRequestHandler.java:91)
	at io.quarkus.vertx.core.runtime.VertxCoreRecorder$13.runWith(VertxCoreRecorder.java:543)
	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1462)
	at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
	at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)

Then things like:

2022-02-11 22:54:16,695 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (executor-thread-194) HTTP Request to /post failed, error id: fcbec178-715a-4b0b-8981-62a6ee53fdf1-190: java.lang.NullPointerException
	at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.dispatch(VertxRequestHandler.java:117)
	at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler$1.run(VertxRequestHandler.java:91)
	at io.quarkus.vertx.core.runtime.VertxCoreRecorder$13.runWith(VertxCoreRecorder.java:543)
	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1462)
	at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
	at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:829)

and:

2022-02-11 22:54:16,814 ERROR [io.ver.ext.web.RoutingContext] (executor-thread-6) Unhandled exception in router: java.util.concurrent.RejectedExecutionException: event executor terminated
	at io.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadEventExecutor.java:923)
	at io.netty.util.concurrent.SingleThreadEventExecutor.offerTask(SingleThreadEventExecutor.java:350)
	at io.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThreadEventExecutor.java:343)
	at io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:825)
	at io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:815)
	at io.vertx.core.net.impl.ConnectionBase.queueForWrite(ConnectionBase.java:238)
	at io.vertx.core.net.impl.ConnectionBase.writeToChannel(ConnectionBase.java:228)
	at io.vertx.core.net.impl.ConnectionBase.writeToChannel(ConnectionBase.java:218)
	at io.vertx.core.net.impl.ConnectionBase.writeToChannel(ConnectionBase.java:214)
	at io.vertx.core.http.impl.Http1xServerResponse.end(Http1xServerResponse.java:416)
	at io.vertx.core.http.impl.Http1xServerResponse.end(Http1xServerResponse.java:391)
	at io.vertx.core.http.impl.Http1xServerResponse.end(Http1xServerResponse.java:370)
	at io.quarkus.vertx.http.runtime.QuarkusErrorHandler.writeResponse(QuarkusErrorHandler.java:191)
	at io.quarkus.vertx.http.runtime.QuarkusErrorHandler.jsonResponse(QuarkusErrorHandler.java:177)
	at io.quarkus.vertx.http.runtime.QuarkusErrorHandler.handle(QuarkusErrorHandler.java:161)
	at io.quarkus.vertx.http.runtime.QuarkusErrorHandler.handle(QuarkusErrorHandler.java:30)
	at io.vertx.ext.web.impl.RouteState.handleFailure(RouteState.java:1218)
	at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:160)
	at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:141)
	at io.vertx.ext.web.impl.RoutingContextImpl.doFail(RoutingContextImpl.java:604)
	at io.vertx.ext.web.impl.RoutingContextImpl.fail(RoutingContextImpl.java:192)
	at io.vertx.ext.web.impl.RoutingContextImpl.fail(RoutingContextImpl.java:181)
	at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler$1.run(VertxRequestHandler.java:93)
	at io.quarkus.vertx.core.runtime.VertxCoreRecorder$13.runWith(VertxCoreRecorder.java:543)
	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1462)
	at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
	at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:829)

(+ maybe more, I stopped at this point)

Implementation ideas

No response

@famod famod added area/housekeeping Issue type for generalized tasks not related to bugs or enhancements flaky-test labels Feb 12, 2022
@quarkus-bot quarkus-bot bot added the env/windows Impacts Windows machines label Feb 12, 2022
@famod
Copy link
Member Author

famod commented Feb 12, 2022

/cc @stuartwdouglas @geoand

@geoand
Copy link
Contributor

geoand commented Feb 12, 2022

We should probably disable it for the time being

@famod
Copy link
Member Author

famod commented Feb 12, 2022

I can do that, with a reference to this ticket (and leave it open, maybe renaming it).

@stuartwdouglas
Copy link
Member

I think it is a backlog issue. By default the backlog is 50, so if the accept thread is a bit slow the connection can be refused. The test then stops and quarkus begins to shutdown, and the existing connections already in the backlog are then being processed in a container that is shutting down.

stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Feb 14, 2022
Also fixes IncompletePostTestCase which has backlog issues on windows.

Fixes quarkusio#23642
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Feb 14, 2022
Also fixes IncompletePostTestCase which has backlog issues on windows.

Fixes quarkusio#23642
@quarkus-bot quarkus-bot bot added this to the 2.8 - main milestone Feb 14, 2022
@gsmet gsmet modified the milestones: 2.8 - main, 2.7.2.Final Feb 21, 2022
gsmet pushed a commit to gsmet/quarkus that referenced this issue Feb 21, 2022
Also fixes IncompletePostTestCase which has backlog issues on windows.

Fixes quarkusio#23642

(cherry picked from commit 0285dc6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/housekeeping Issue type for generalized tasks not related to bugs or enhancements env/windows Impacts Windows machines
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants