You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Aidan Skinner (JIRA)" <qp...@incubator.apache.org> on 2009/03/31 10:45:51 UTC

[jira] Created: (QPID-1782) Java client sporadically times out trying to create a connection

Java client sporadically times out trying to create a connection
----------------------------------------------------------------

                 Key: QPID-1782
                 URL: https://issues.apache.org/jira/browse/QPID-1782
             Project: Qpid
          Issue Type: Bug
          Components: Java Client
    Affects Versions: 0.5
            Reporter: Aidan Skinner
            Priority: Critical
             Fix For: 0.5


Some tests will randomly throw these errors when run against the Java broker. Most of the time they will succeed, both immediately before and immediately after one of those failures. 

org.apache.qpid.transport.ConnectionException: connect() timed out
  at org.apache.qpid.transport.Connection.connect(Connection.java:209)
  at org.apache.qpid.client.AMQConnectionDelegate_0_10.makeBrokerConnection(AMQConnectionDelegate_0_10.java:161)
  at org.apache.qpid.client.AMQConnection.makeBrokerConnection(AMQConnection.java:676)
  at org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:469)
  at org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:316)
  at org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:296)
  at org.apache.qpid.client.AMQConnectionFactory.createTopicConnection(AMQConnectionFactory.java:348)

It's possible that the statewaiter isn't being set fast enough, but I'm not very familiar with that code so far. 

- Aidan

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-1782) Java client sporadically times out trying to create a connection

Posted by "Aidan Skinner (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aidan Skinner updated QPID-1782:
--------------------------------

     Affects Version/s:     (was: 0.5)
         Fix Version/s:     (was: 0.5)
              Assignee: Aidan Skinner
    Remaining Estimate: 0h
     Original Estimate: 0h

> Java client sporadically times out trying to create a connection
> ----------------------------------------------------------------
>
>                 Key: QPID-1782
>                 URL: https://issues.apache.org/jira/browse/QPID-1782
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>            Reporter: Aidan Skinner
>            Assignee: Aidan Skinner
>            Priority: Critical
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> Some tests will randomly throw these errors when run against the Java broker. Most of the time they will succeed, both immediately before and immediately after one of those failures. 
> org.apache.qpid.transport.ConnectionException: connect() timed out
>   at org.apache.qpid.transport.Connection.connect(Connection.java:209)
>   at org.apache.qpid.client.AMQConnectionDelegate_0_10.makeBrokerConnection(AMQConnectionDelegate_0_10.java:161)
>   at org.apache.qpid.client.AMQConnection.makeBrokerConnection(AMQConnection.java:676)
>   at org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:469)
>   at org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:316)
>   at org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:296)
>   at org.apache.qpid.client.AMQConnectionFactory.createTopicConnection(AMQConnectionFactory.java:348)
> It's possible that the statewaiter isn't being set fast enough, but I'm not very familiar with that code so far. 
> - Aidan

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-1782) Java client sporadically times out trying to create a connection

Posted by "Aidan Skinner (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-1782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12694167#action_12694167 ] 

Aidan Skinner commented on QPID-1782:
-------------------------------------

I suspect that the problem is in this block of Connection.connect:

            IoTransport.connect(host, port, ConnectionBinding.get(this), ssl);
            send(new ProtocolHeader(1, 0, 10));

            Waiter w = new Waiter(lock, timeout);
            while (w.hasTime() && state == OPENING && error == null)
            {
                w.await();
            }

            if (error != null)
            {

What I think is probably happening is that the call to exception() occurs right after the check, but I can't prove this. The exception that's thrown shows that it never gets out of the OPENING state.

> Java client sporadically times out trying to create a connection
> ----------------------------------------------------------------
>
>                 Key: QPID-1782
>                 URL: https://issues.apache.org/jira/browse/QPID-1782
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.5
>            Reporter: Aidan Skinner
>            Priority: Critical
>             Fix For: 0.5
>
>
> Some tests will randomly throw these errors when run against the Java broker. Most of the time they will succeed, both immediately before and immediately after one of those failures. 
> org.apache.qpid.transport.ConnectionException: connect() timed out
>   at org.apache.qpid.transport.Connection.connect(Connection.java:209)
>   at org.apache.qpid.client.AMQConnectionDelegate_0_10.makeBrokerConnection(AMQConnectionDelegate_0_10.java:161)
>   at org.apache.qpid.client.AMQConnection.makeBrokerConnection(AMQConnection.java:676)
>   at org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:469)
>   at org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:316)
>   at org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:296)
>   at org.apache.qpid.client.AMQConnectionFactory.createTopicConnection(AMQConnectionFactory.java:348)
> It's possible that the statewaiter isn't being set fast enough, but I'm not very familiar with that code so far. 
> - Aidan

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org