You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Carl Trieloff (JIRA)" <qp...@incubator.apache.org> on 2007/07/17 21:51:04 UTC

[jira] Created: (QPID-542) This should be replace waiting for confirm of publish once we have message class from 0-10

This should be replace waiting for confirm of publish once we have message class from 0-10
------------------------------------------------------------------------------------------

                 Key: QPID-542
                 URL: https://issues.apache.org/jira/browse/QPID-542
             Project: Qpid
          Issue Type: Bug
          Components: AMQP Compliance
            Reporter: Carl Trieloff



cut from basic.py

        channel.basic_publish(routing_key="test-queue-4", content=Content("One"))
 	import time; time.sleep(5) # this should be replace waiting for confirm of publish once we have message class
        #cancel should stop messages being delivered
        channel.basic_cancel(consumer_tag="my-consumer")


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


[jira] Commented: (QPID-542) This should be replace waiting for confirm of publish once we have message class from 0-10

Posted by "Rafael H. Schloming (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513350 ] 

Rafael H. Schloming commented on QPID-542:
------------------------------------------

I think there is actually still a race condition for this test even if you wait for confirm of the publish. Confirm of the publish would only indicate that the message is on the queue. I think the only way to fix this test is to change it to actually get the first message prior to canceling the consumer and publishing the second message.

> This should be replace waiting for confirm of publish once we have message class from 0-10
> ------------------------------------------------------------------------------------------
>
>                 Key: QPID-542
>                 URL: https://issues.apache.org/jira/browse/QPID-542
>             Project: Qpid
>          Issue Type: Bug
>          Components: AMQP Compliance
>            Reporter: Carl Trieloff
>
> cut from basic.py
>         channel.basic_publish(routing_key="test-queue-4", content=Content("One"))
>  	import time; time.sleep(5) # this should be replace waiting for confirm of publish once we have message class
>         #cancel should stop messages being delivered
>         channel.basic_cancel(consumer_tag="my-consumer")

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


[jira] Resolved: (QPID-542) This should be replace waiting for confirm of publish once we have message class from 0-10

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

Carl Trieloff resolved QPID-542.
--------------------------------

    Resolution: Fixed


Fixed, by moving get before cancel.

> This should be replace waiting for confirm of publish once we have message class from 0-10
> ------------------------------------------------------------------------------------------
>
>                 Key: QPID-542
>                 URL: https://issues.apache.org/jira/browse/QPID-542
>             Project: Qpid
>          Issue Type: Bug
>          Components: AMQP Compliance
>            Reporter: Carl Trieloff
>
> cut from basic.py
>         channel.basic_publish(routing_key="test-queue-4", content=Content("One"))
>  	import time; time.sleep(5) # this should be replace waiting for confirm of publish once we have message class
>         #cancel should stop messages being delivered
>         channel.basic_cancel(consumer_tag="my-consumer")

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