hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HTTPCLIENT-1127) Deadlock between SingleClientConnManager.releaseConnection() and SingleClientConnManager.shutdown()
Date Sat, 24 Sep 2011 10:51:27 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski updated HTTPCLIENT-1127:
------------------------------------------

    Fix Version/s: 4.1.3

> Deadlock between SingleClientConnManager.releaseConnection() and SingleClientConnManager.shutdown()
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1127
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1127
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.1.2
>            Reporter: Sebb
>             Fix For: 4.1.3
>
>
> It's possible to create a deadlock within SingleClientConnectionManager.
> When JMeter interrupts a test, it calls HttpUriRequest.abort(), and as part of thread
end processing it calls SingleClientConnManager.shutdown().
> See deadlock details below.
> I don't yet know why the shutdown is called before the abort finishes; that is probably
a bug.
> However, there may be a issue with the locking strategy within SCCM, hence this report.
> "Thread-18":
>         at org.apache.http.impl.conn.SingleClientConnManager.releaseConnection(SingleClientConnManager.java:258)
>         - waiting to lock <0x19e00118> (a org.apache.http.impl.conn.SingleClientConnManager)
>         at org.apache.http.impl.conn.AbstractClientConnAdapter.abortConnection(AbstractClientConnAdapter.java:323)
>         - locked <0x19e00148> (a org.apache.http.impl.conn.SingleClientConnManager$ConnAdapter)
>         at org.apache.http.client.methods.HttpRequestBase.abort(HttpRequestBase.java:161)
>         at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.interrupt(HTTPHC4Impl.java:1090)
>         at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.interrupt(HTTPSamplerProxy.java:77)
>         at org.apache.jmeter.threads.JMeterThread.interrupt(JMeterThread.java:580)
>         at org.apache.jmeter.engine.StandardJMeterEngine.tellThreadsToStop(StandardJMeterEngine.java:552)
>         at org.apache.jmeter.engine.StandardJMeterEngine.access$2(StandardJMeterEngine.java:547)
>         at org.apache.jmeter.engine.StandardJMeterEngine$StopTest.run(StandardJMeterEngine.java:284)
>         at java.lang.Thread.run(Thread.java:662)
> "Thread Group 1-1":
>         at org.apache.http.impl.conn.AbstractPooledConnAdapter.detach(AbstractPooledConnAdapter.java:106)
>         - waiting to lock <0x19e00148> (a org.apache.http.impl.conn.SingleClientConnManager$ConnAdapter)
>         at org.apache.http.impl.conn.SingleClientConnManager.shutdown(SingleClientConnManager.java:342)
>         - locked <0x19e00118> (a org.apache.http.impl.conn.SingleClientConnManager)
>         at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.closeThreadLocalConnections(HTTPHC4Impl.java:1076)
>         at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.threadFinished(HTTPHC4Impl.java:1065)
>         at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.threadFinished(HTTPSamplerProxy.java:71)
>         at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:553)
>         at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:986)
>         at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:969)
>         at org.apache.jmeter.threads.JMeterThread.threadFinished(JMeterThread.java:528)
>         at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:308)
>         at java.lang.Thread.run(Thread.java:662)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message