You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Gordon Sim (Created) (JIRA)" <ji...@apache.org> on 2012/02/11 16:23:59 UTC

[jira] [Created] (QPID-3828) Sending large messages does not fail when connection is lost

Sending large messages does not fail when connection is lost
------------------------------------------------------------

                 Key: QPID-3828
                 URL: https://issues.apache.org/jira/browse/QPID-3828
             Project: Qpid
          Issue Type: Bug
          Components: C++ Client
    Affects Versions: 0.14
            Reporter: Gordon Sim


E.g run qpid-send --broker <remote-broker> --connection-options {heartbeat:8} --messages 0 --content-size 1600 --report-every 1000 --address amq.topic

then after some time pull the network cable (you have to do this, a kill -STOP on the broker is *not* sufficient). The test will continue sending messages then eventually hang (when buffers are full). If you reconnect the cable, the connection will fail but if you don't, it will not.

If you reduce the size e.g. to 100 bytes , the connection fails as expected after two heartbeat intervals (16 secs in this case).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Assigned] (QPID-3828) When sending large messages loss of connection is not detected even with heartbeats enabled

Posted by "Gordon Sim (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gordon Sim reassigned QPID-3828:
--------------------------------

    Assignee: Andrew Stitcher
    
> When sending large messages loss of connection is not detected even with heartbeats enabled
> -------------------------------------------------------------------------------------------
>
>                 Key: QPID-3828
>                 URL: https://issues.apache.org/jira/browse/QPID-3828
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: 0.14, 0.15
>            Reporter: Gordon Sim
>            Assignee: Andrew Stitcher
>
> E.g run qpid-send --broker <remote-broker> --connection-options {heartbeat:8} --messages 0 --content-size 1600 --report-every 1000 --address amq.topic
> then after some time pull the network cable (you have to do this, a kill -STOP on the broker is *not* sufficient). The test will continue sending messages then eventually hang (when buffers are full). If you reconnect the cable, the connection will fail but if you don't, it will not.
> If you reduce the size e.g. to 100 bytes , the connection fails as expected after two heartbeat intervals (16 secs in this case).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Updated] (QPID-3828) Sending large messages does not fail when connection is lost

Posted by "Gordon Sim (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gordon Sim updated QPID-3828:
-----------------------------

    Affects Version/s: 0.15
    
> Sending large messages does not fail when connection is lost
> ------------------------------------------------------------
>
>                 Key: QPID-3828
>                 URL: https://issues.apache.org/jira/browse/QPID-3828
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: 0.14, 0.15
>            Reporter: Gordon Sim
>
> E.g run qpid-send --broker <remote-broker> --connection-options {heartbeat:8} --messages 0 --content-size 1600 --report-every 1000 --address amq.topic
> then after some time pull the network cable (you have to do this, a kill -STOP on the broker is *not* sufficient). The test will continue sending messages then eventually hang (when buffers are full). If you reconnect the cable, the connection will fail but if you don't, it will not.
> If you reduce the size e.g. to 100 bytes , the connection fails as expected after two heartbeat intervals (16 secs in this case).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Updated] (QPID-3828) When sending large messages loss of connection is not detected even with heartbeats enabled

Posted by "Gordon Sim (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gordon Sim updated QPID-3828:
-----------------------------

    Summary: When sending large messages loss of connection is not detected even with heartbeats enabled  (was: Sending large messages does not fail when connection is lost)
    
> When sending large messages loss of connection is not detected even with heartbeats enabled
> -------------------------------------------------------------------------------------------
>
>                 Key: QPID-3828
>                 URL: https://issues.apache.org/jira/browse/QPID-3828
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: 0.14, 0.15
>            Reporter: Gordon Sim
>
> E.g run qpid-send --broker <remote-broker> --connection-options {heartbeat:8} --messages 0 --content-size 1600 --report-every 1000 --address amq.topic
> then after some time pull the network cable (you have to do this, a kill -STOP on the broker is *not* sufficient). The test will continue sending messages then eventually hang (when buffers are full). If you reconnect the cable, the connection will fail but if you don't, it will not.
> If you reduce the size e.g. to 100 bytes , the connection fails as expected after two heartbeat intervals (16 secs in this case).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (QPID-3828) When sending large messages loss of connection is not detected even with heartbeats enabled

Posted by "Gordon Sim (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-3828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206175#comment-13206175 ] 

Gordon Sim commented on QPID-3828:
----------------------------------

The following change 'fixes' the issue as described, but I suspect it may cause other problems (e.g. leaks or dangling pointers under other coniditions)?

{noformat}
Index: src/qpid/client/TCPConnector.cpp
===================================================================
--- src/qpid/client/TCPConnector.cpp	(revision 1234761)
+++ src/qpid/client/TCPConnector.cpp	(working copy)
@@ -160,7 +160,7 @@
     if (!closed) {
         if (aio) {
             // Established connection
-            aio->requestCallback(boost::bind(&TCPConnector::eof, this, _1));
+            aio->requestCallback(boost::bind(&TCPConnector::disconnected, this, _1));
         } else if (connector) {
             // We're still connecting
             connector->stop();

{noformat}
                
> When sending large messages loss of connection is not detected even with heartbeats enabled
> -------------------------------------------------------------------------------------------
>
>                 Key: QPID-3828
>                 URL: https://issues.apache.org/jira/browse/QPID-3828
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: 0.14, 0.15
>            Reporter: Gordon Sim
>            Assignee: Andrew Stitcher
>
> E.g run qpid-send --broker <remote-broker> --connection-options {heartbeat:8} --messages 0 --content-size 1600 --report-every 1000 --address amq.topic
> then after some time pull the network cable (you have to do this, a kill -STOP on the broker is *not* sufficient). The test will continue sending messages then eventually hang (when buffers are full). If you reconnect the cable, the connection will fail but if you don't, it will not.
> If you reduce the size e.g. to 100 bytes , the connection fails as expected after two heartbeat intervals (16 secs in this case).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (QPID-3828) When sending large messages loss of connection is not detected even with heartbeats enabled

Posted by "Gordon Sim (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-3828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206160#comment-13206160 ] 

Gordon Sim commented on QPID-3828:
----------------------------------

When the idle timeout fires., the callback request works as expected and we call AsyncIO::queueWriteClose(). However at that point if the socket is not writable (i.e. buffers are full), then we never get the AsyncIO::writable() callback again (at least until the netwrok connection is re-established) and that is where the actual close is handled.
                
> When sending large messages loss of connection is not detected even with heartbeats enabled
> -------------------------------------------------------------------------------------------
>
>                 Key: QPID-3828
>                 URL: https://issues.apache.org/jira/browse/QPID-3828
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: 0.14, 0.15
>            Reporter: Gordon Sim
>
> E.g run qpid-send --broker <remote-broker> --connection-options {heartbeat:8} --messages 0 --content-size 1600 --report-every 1000 --address amq.topic
> then after some time pull the network cable (you have to do this, a kill -STOP on the broker is *not* sufficient). The test will continue sending messages then eventually hang (when buffers are full). If you reconnect the cable, the connection will fail but if you don't, it will not.
> If you reduce the size e.g. to 100 bytes , the connection fails as expected after two heartbeat intervals (16 secs in this case).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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