qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eugene <eugen.ra...@gmail.com>
Subject Deadlock
Date Wed, 01 Aug 2012 10:47:20 GMT
Hello,

We are having a DeadLock issue and it seems that this is the same bug as
here:

https://issues.apache.org/jira/browse/QPID-3216

So here what the logs say:

[2012-08-01 23:24:00.355] INFO  sample_service.SampleService
org.apache.qpid.client.BasicMessageConsumer                       Closing
consumer:7[2130838978] 
[2012-08-01 23:24:00.355] ERROR Thread-71                    System.err                  
                                    
Exception in thread "Thread-71" java.lang.RuntimeException:
java.lang.InterruptedException 
[2012-08-01 23:24:00.355] ERROR Thread-71                    System.err                  
                                     
at org.apache.qpid.client.AMQSession.syncDispatchQueue(AMQSession.java:2215) 
[2012-08-01 23:24:00.355] ERROR Thread-71                    System.err                  
                                     
at
org.apache.qpid.client.BasicMessageConsumer_0_10.getMessageFromQueue(BasicMessageConsumer_0_10.java:436)

[2012-08-01 23:24:00.356] ERROR Thread-71                    System.err                  
                                     
at
org.apache.qpid.client.BasicMessageConsumer.receive(BasicMessageConsumer.java:407) 
[2012-08-01 23:24:00.356] ERROR Thread-71                    System.err                  
                                     
at com.moodys.msp.lb.ServiceRequestPoller.run(ServiceRequestPoller.java:43) 
[2012-08-01 23:24:00.356] ERROR Thread-71                    System.err                  
                                     
at java.lang.Thread.run(Thread.java:680) 
[2012-08-01 23:24:00.356] ERROR Thread-71                    System.err                  
                                    
Caused by: java.lang.InterruptedException 
[2012-08-01 23:24:00.356] ERROR Thread-71                    System.err                  
                                     
at
java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:979)

[2012-08-01 23:24:00.356] ERROR Thread-71                    System.err                  
                                     
at
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1281)

[2012-08-01 23:24:00.356] ERROR Thread-71                    System.err                  
                                     
at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:207) 
[2012-08-01 23:24:00.356] ERROR Thread-71                    System.err                  
                                     
at org.apache.qpid.client.AMQSession.syncDispatchQueue(AMQSession.java:2211) 
[2012-08-01 23:24:00.356] ERROR Thread-71                    System.err                  
                                     
... 4 more 

Also here is the JConsole output for the deadlock:

Name: Dispatcher-Channel-0
State: BLOCKED on java.lang.Object@c58f769 owned by: main
Total blocked: 2  Total waited: 1

Stack trace: 

org.apache.qpid.client.BasicMessageConsumer.close(BasicMessageConsumer.java:571)
org.apache.qpid.client.BasicMessageConsumer.close(BasicMessageConsumer.java:535)
com.eugene.package.CallResponseListener.tryCloseMessageConsumer(CallResponseListener.java:55)
com.eugene.package.CallResponseListener.onMessage(CallResponseListener.java:50)
org.apache.qpid.client.BasicMessageConsumer.notifyMessage(BasicMessageConsumer.java:725)
org.apache.qpid.client.BasicMessageConsumer_0_10.notifyMessage(BasicMessageConsumer_0_10.java:167)
org.apache.qpid.client.BasicMessageConsumer.notifyMessage(BasicMessageConsumer.java:699)
org.apache.qpid.client.BasicMessageConsumer_0_10.notifyMessage(BasicMessageConsumer_0_10.java:205)
org.apache.qpid.client.BasicMessageConsumer_0_10.notifyMessage(BasicMessageConsumer_0_10.java:47)
org.apache.qpid.client.AMQSession$Dispatcher.notifyConsumer(AMQSession.java:3388)
org.apache.qpid.client.AMQSession$Dispatcher.dispatchMessage(AMQSession.java:3332)
   - locked java.lang.Object@22fe135d
   - locked java.lang.Object@1a0283e
org.apache.qpid.client.AMQSession$Dispatcher.access$900(AMQSession.java:3113)
org.apache.qpid.client.AMQSession.dispatch(AMQSession.java:3106)
org.apache.qpid.client.message.UnprocessedMessage.dispatch(UnprocessedMessage.java:55)
org.apache.qpid.client.AMQSession$Dispatcher.run(AMQSession.java:3260)
java.lang.Thread.run(Thread.java:680)


And on the other side:


Name: main
State: BLOCKED on java.lang.Object@22fe135d owned by: Dispatcher-Channel-0
Total blocked: 148  Total waited: 133

Stack trace: 
 org.apache.qpid.client.AMQSession.close(AMQSession.java:731)
   - locked java.lang.Object@c58f769
org.apache.qpid.client.AMQSession.close(AMQSession.java:708)
org.apache.qpid.client.AMQSession.close(AMQSession.java:567)
come.eugene.package.MSPConnectionImpl.close(MSPConnectionImpl.java:54)
com.eugene.package.ToDelete.doRoundRobinTest(ToDelete.java:62)
com.eugene.package.ToDelete.main(ToDelete.java:25)

Any luck of that bug being closed?

Thank You,
Eugene.




--
View this message in context: http://apache-qpid-developers.2158895.n2.nabble.com/Deadlock-tp7581518.html
Sent from the Apache Qpid developers mailing list archive at Nabble.com.

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


Mime
View raw message