Skip to content

"io.helidon.http.RequestException: Failed to wait for pipeline" #8317

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

Closed
ghost opened this issue Jan 31, 2024 · 3 comments
Closed

"io.helidon.http.RequestException: Failed to wait for pipeline" #8317

ghost opened this issue Jan 31, 2024 · 3 comments
Assignees
Labels
bug Something isn't working webserver
Milestone

Comments

@ghost
Copy link

ghost commented Jan 31, 2024

Environment Details

  • Helidon Version: 4.0.1
  • Helidon SE or Helidon MP: Helidon SE 4.0.1 features: [Config, Encoding, Health, Media, Observe, WebServer]
  • JDK version: 21-oracle
  • OS: MAC
  • Docker version:

Problem Description

I'm facing this exception while doing some testing with Helidon

12:54:08.857 DEBUG io.helidon.webserver.http1.Http1LoggingConnectionListener.send [0x502383db 0x127f2e3b] send status: 500 Internal Server Error
12:54:08.857 DEBUG io.helidon.webserver.http1.Http1LoggingConnectionListener.send [0x502383db 0x127f2e3b] send headers: 
Connection: keep-alive
Content-Length: 27
Content-Type: text/plain

12:54:08.857 DEBUG io.helidon.webserver.ConnectionHandler [0x502383db 0x7d4d310d] socket closed
12:54:08.857 WARN  io.helidon.webserver.http1.Http1Connection Internal server error
io.helidon.http.RequestException: Failed to wait for pipeline
	at io.helidon.http.RequestException$Builder.build(RequestException.java:139) ~[helidon-http-4.0.1.jar:4.0.1]
	at io.helidon.webserver.http1.Http1Connection.route(Http1Connection.java:425) ~[helidon-webserver-4.0.1.jar:4.0.1]
	at io.helidon.webserver.http1.Http1Connection.handle(Http1Connection.java:187) ~[helidon-webserver-4.0.1.jar:4.0.1]
	at io.helidon.webserver.ConnectionHandler.run(ConnectionHandler.java:165) ~[helidon-webserver-4.0.1.jar:4.0.1]
	at io.helidon.common.task.InterruptableTask.call(InterruptableTask.java:47) ~[helidon-common-task-4.0.1.jar:4.0.1]
	at io.helidon.webserver.ThreadPerTaskExecutor$ThreadBoundFuture.run(ThreadPerTaskExecutor.java:239) ~[helidon-webserver-4.0.1.jar:4.0.1]
	at java.base/java.lang.VirtualThread.run(VirtualThread.java:309) ~[?:?]
Caused by: java.lang.InterruptedException
	at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1100) ~[?:?]
	at java.base/java.util.concurrent.CountDownLatch.await(CountDownLatch.java:230) ~[?:?]
	at io.helidon.webserver.http1.Http1Connection.route(Http1Connection.java:418) ~[helidon-webserver-4.0.1.jar:4.0.1]
	... 5 more

What does that exception and message mean?

Thanks in advance!

@tomas-langer
Copy link
Member

This means that the entity was not consumed, and the thread was interrupted. I have discovered an issue here, where if the header Connection: close is set, this may happen even if nothing went wrong.
Do you have a way to reproduce this problem?

@tomas-langer
Copy link
Member

I have added a PR with a fix for the problem I discovered.

@tomas-langer tomas-langer added bug Something isn't working webserver and removed triage labels Feb 13, 2024
@tomas-langer tomas-langer added this to the 4.0.6 milestone Feb 13, 2024
@tomas-langer
Copy link
Member

Hello @imrafaelmerino - I will close this issue, as I have fixed the bug I could find without a reproducer. If you see this again after we release 4.0.6 (that should be the version this fix will be inclulded in), kindly re-open this issue, ideally with steps to reproduce, so I can get to the root of the problem.
Thanks

@m0mus m0mus added this to Backlog Aug 12, 2024
@m0mus m0mus moved this to Closed in Backlog Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working webserver
Projects
Archived in project
Development

No branches or pull requests

2 participants