qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aidan Skinner (JIRA)" <qpid-...@incubator.apache.org>
Subject [jira] Commented: (QPID-1782) Java client sporadically times out trying to create a connection
Date Tue, 31 Mar 2009 16:14:50 GMT

    [ 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)

            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

View raw message