Details
Description
I ran into a deadlock during my testing. Below is the jstack output for the deadlocked threads:
Found one Java-level deadlock: ============================= "btpool0-1": waiting to lock monitor 0x27b1b3b4 (object 0x24979740, a org.mortbay.io.nio.NIOBuffer), which is held by "main" "main": waiting to lock monitor 0x27b1b34c (object 0x24a29558, a org.mortbay.jetty.nio.SelectChannelConnector$ConnectorEndPoint), which is held by "btpool0-1" Java stack information for the threads listed above: =================================================== "btpool0-1": at org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:217) - waiting to lock <0x24979740> (a org.mortbay.io.nio.NIOBuffer) at org.mortbay.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:178) at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:592) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:362) - locked <0x24a6ac98> (a org.mortbay.jetty.HttpConnection) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:334) - locked <0x24a29558> (a org.mortbay.jetty.nio.SelectChannelConnector$ConnectorEndPoint) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) "main": at org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:233) - waiting to lock <0x24a29558> (a org.mortbay.jetty.nio.SelectChannelConnector$ConnectorEndPoint) - locked <0x24979688> (a org.mortbay.io.nio.NIOBuffer) - locked <0x24979740> (a org.mortbay.io.nio.NIOBuffer) at org.mortbay.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:178) at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:592) at org.mortbay.jetty.AbstractGenerator$Output.flush(AbstractGenerator.java:559) at org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:853) at com.electriccloud.accelerator.service.BuildNotifier.notifyBuild(BuildNotifier.java:102) - locked <0x24c9b2c0> (a com.electriccloud.accelerator.service.BuildNotifier) at com.electriccloud.accelerator.server.XmlRequestHandlerImplTest.test_handle_notifyRequest(XmlRequestHandlerImplTest.java:110) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:228) at junit.framework.TestSuite.run(TestSuite.java:223) at junit.framework.TestSuite.runTest(TestSuite.java:228) at junit.framework.TestSuite.run(TestSuite.java:223) at junit.textui.TestRunner.doRun(TestRunner.java:115) at com.intellij.rt.execution.junit.IdeaTestRunner.doRun(IdeaTestRunner.java:69) at junit.textui.TestRunner.doRun(TestRunner.java:108) at com.intellij.rt.execution.junit.IdeaTestRunner.startRunnerWithArgs(IdeaTestRunner.java:24) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:118) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Found 1 deadlock.
Activity
Greg Wilkins
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 6.1.2rc2 [ 13310 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |