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

Jetty threads stuck on HttpOutput.write #3745

Closed
gianm opened this issue Dec 6, 2016 · 1 comment
Closed

Jetty threads stuck on HttpOutput.write #3745

gianm opened this issue Dec 6, 2016 · 1 comment
Labels
Milestone

Comments

@gianm
Copy link
Contributor

gianm commented Dec 6, 2016

See https://groups.google.com/d/msg/druid-development/rQMk8C4cUfs/atGoF8XEBQAJ for the report. I've seen this on other clusters as well with multiple Druid versions (including 0.9.1.1). It seems connected to periods of high load, especially involving long running queries. In the two times I've seen this, upgrading to Jetty 9.3.12.v20160915 helped, although that can't be done without also requiring Java 8 so I didn't submit a patch back to Druid.

This issue tracks the problem and can be resolved when we build for Java 8.

Thread stack of a stuck thread:

"qtp362370312-874" daemon prio=10 tid=0x00007f7d460ee000 nid=0x6c80 waiting on condition [0x00007f7d0f9da000]
   java.lang.Thread.State: TIMED_WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x0000000738d2d000> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2176)
        at org.eclipse.jetty.util.SharedBlockingCallback$Blocker.block(SharedBlockingCallback.java:213)
        at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:133)
        at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:347)
        at org.eclipse.jetty.servlets.gzip.DeflatedOutputStream.deflate(DeflatedOutputStream.java:74)
        at org.eclipse.jetty.servlets.gzip.DeflatedOutputStream.write(DeflatedOutputStream.java:64)
        at org.eclipse.jetty.servlets.gzip.GzipOutputStream.write(GzipOutputStream.java:46)

https://bugs.eclipse.org/bugs/show_bug.cgi?id=478923 is possibly related.

@gianm gianm added the Bug label Dec 6, 2016
@gianm gianm added this to the 0.10.0 milestone Dec 6, 2016
@fjy fjy modified the milestones: 0.10.0, 0.10.1 Dec 13, 2016
@gianm
Copy link
Contributor Author

gianm commented Feb 14, 2017

Closed by #3914

@gianm gianm closed this as completed Feb 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants