[
http://jira.jboss.com/jira/browse/JBREM-845?page=all ]
Carlo de Wolf updated JBREM-845:
--------------------------------
Attachment: console.log-4.txt
This is what I see in console:
After starting the unit test I wait for testMessageDriven to start. Then I kill the unit
test (SIGINT).
MicroSocketClientInvoker chokes, which is expect.
Then I run the test again, which initiates an undeploy, which results in hangup.
I still can't create a reproducable JUnit test case in which I force the issue.
Infinite loop in BisocketClientInvoker.createSocket
---------------------------------------------------
Key: JBREM-845
URL:
http://jira.jboss.com/jira/browse/JBREM-845
Project: JBoss Remoting
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 2.2.2.SP2, 2.2.2.GA_CP01
Reporter: Carlo de Wolf
Assigned To: Ron Sigal
Priority: Blocker
Attachments: console.log-4.txt, jboss-remoting.jar, jboss-remoting.jar,
JBREM-845-3.txt, JBREM-845-4.txt, strictpool-shutdown-EAP-4.3.hang.txt
The following piece of code constitutes an infinite loop when timeout = 0:
while (timeout == 0 || wait > 0)
{
try
{
sockets.wait(wait);
break;
}
catch (InterruptedException e)
{
log.debug("unexpected interrupt");
if (timeout > 0)
wait = timeout - (System.currentTimeMillis() - start);
}
}
"Thread-41" prio=1 tid=0x00002aaaac3cd0b0 nid=0x2e87 in Object.wait()
[0x0000000048fe3000..0x0000000048fe3d80]
at java.lang.Object.wait(Native Method)
- waiting on <0x00002b7156e2f410> (a java.util.HashSet)
at
org.jboss.remoting.transport.bisocket.BisocketClientInvoker.createSocket(BisocketClientInvoker.java:458)
- locked <0x00002b7156e2f410> (a java.util.HashSet)
at
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:815)
at
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:525)
at
org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:413)
at
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.invoke(Client.java:548)
at org.jboss.remoting.Client.invokeOneway(Client.java:598)
at
org.jboss.remoting.callback.ServerInvokerCallbackHandler.handleCallback(ServerInvokerCallbackHandler.java:815)
at
org.jboss.remoting.callback.ServerInvokerCallbackHandler.handleCallbackOneway(ServerInvokerCallbackHandler.java:686)
at
org.jboss.jms.server.endpoint.ServerSessionEndpoint.performDelivery(ServerSessionEndpoint.java:1490)
- locked <0x00002b71569e25e8> (a
org.jboss.remoting.transport.bisocket.BisocketClientInvoker)
at
org.jboss.jms.server.endpoint.ServerSessionEndpoint.handleDelivery(ServerSessionEndpoint.java:1375)
- locked <0x00002b71569dfd40> (a
org.jboss.jms.server.endpoint.ServerSessionEndpoint)
at
org.jboss.jms.server.endpoint.ServerConsumerEndpoint.handle(ServerConsumerEndpoint.java:307)
- locked <0x00002b71569ed6b0> (a java.lang.Object)
at
org.jboss.messaging.core.impl.RoundRobinDistributor.handle(RoundRobinDistributor.java:119)
at
org.jboss.messaging.core.impl.MessagingQueue$DistributorWrapper.handle(MessagingQueue.java:582)
at
org.jboss.messaging.core.impl.ClusterRoundRobinDistributor.handle(ClusterRoundRobinDistributor.java:79)
at
org.jboss.messaging.core.impl.ChannelSupport.deliverInternal(ChannelSupport.java:476)
at
org.jboss.messaging.core.impl.MessagingQueue.deliverInternal(MessagingQueue.java:505)
at org.jboss.messaging.core.impl.ChannelSupport.deliver(ChannelSupport.java:226)
- locked <0x00002b71565d3d50> (a java.lang.Object)
at
org.jboss.jms.server.endpoint.ServerSessionEndpoint$2.run(ServerSessionEndpoint.java:1598)
at
EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExecutor.java:89)
at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira