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

Sporadic ArithmeticException when sending WebSocket upgrade requests on 9.4.x #5819

Closed
marcphilipp opened this issue Dec 17, 2020 · 0 comments · Fixed by #5820
Closed

Sporadic ArithmeticException when sending WebSocket upgrade requests on 9.4.x #5819

marcphilipp opened this issue Dec 17, 2020 · 0 comments · Fixed by #5820
Assignees

Comments

@marcphilipp
Copy link
Contributor

Jetty version

9.4.35.v20201120

Java version

1.8 (let me know if you need to know the exact update)

OS type/version

Linux 4.4.0-1052-aws

Description

We're sporadically seeing exceptions like the following when sending WebSocketUpgradeRequests:

Caused by: java.lang.ArithmeticException: / by zero
	at org.eclipse.jetty.util.Pool.acquire(Pool.java:278)
	at org.eclipse.jetty.client.AbstractConnectionPool.activate(AbstractConnectionPool.java:284)
	at org.eclipse.jetty.client.AbstractConnectionPool.acquire(AbstractConnectionPool.java:209)
	at org.eclipse.jetty.client.HttpDestination.process(HttpDestination.java:329)
	at org.eclipse.jetty.client.HttpDestination.send(HttpDestination.java:316)
	at org.eclipse.jetty.client.HttpDestination.send(HttpDestination.java:309)
	at org.eclipse.jetty.client.HttpDestination.send(HttpDestination.java:286)
	at org.eclipse.jetty.client.HttpDestination.send(HttpDestination.java:263)
	at org.eclipse.jetty.client.HttpClient.send(HttpClient.java:600)
	at org.eclipse.jetty.client.HttpRequest.sendAsync(HttpRequest.java:778)
	at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:765)
	at org.eclipse.jetty.websocket.client.WebSocketUpgradeRequest.send(WebSocketUpgradeRequest.java:565)
	at org.eclipse.jetty.websocket.client.WebSocketUpgradeRequest.sendAsync(WebSocketUpgradeRequest.java:570)
	at com.gradle.enterprise.testdistribution.common.client.websocket.h.a(SourceFile:70)
	at com.gradle.enterprise.testdistribution.common.client.websocket.h.a(SourceFile:53)
	at com.gradle.enterprise.testdistribution.common.client.websocket.o.b(SourceFile:47)
	at net.jodah.failsafe.Functions.lambda$toCtxSupplier$15(Functions.java:276)
	at net.jodah.failsafe.Functions.lambda$getPromiseOfStage$6(Functions.java:154)
	at net.jodah.failsafe.Functions.lambda$getPromiseAsync$4(Functions.java:100)
	... 8 more

We've limited the maxRequestsQueuedPerDestination on the HttpClient to 4 in case that's relevant.

@lorban lorban self-assigned this Dec 17, 2020
@lorban lorban linked a pull request Dec 17, 2020 that will close this issue
@joakime joakime added this to To do in Jetty 9.4.36 via automation Dec 17, 2020
@joakime joakime moved this from To do to In progress in Jetty 9.4.36 Dec 17, 2020
@lorban lorban closed this as completed Dec 17, 2020
Jetty 9.4.36 automation moved this from In progress to Done Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants