You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Alan Conway (JIRA)" <qp...@incubator.apache.org> on 2007/03/09 18:53:09 UTC

[jira] Created: (QPID-409) Race condition in python client on 0-9 branch.

Race condition in python client on 0-9 branch.
----------------------------------------------

                 Key: QPID-409
                 URL: https://issues.apache.org/jira/browse/QPID-409
             Project: Qpid
          Issue Type: Bug
            Reporter: Alan Conway


Sporadically, tests that deliberately cause connection errors are failing (see below.) From the stack trace it seems that in some circumstances the connection can be closed without setting the client.closed flag.

[aconway@scooter python]$ ./run-tests -I cpp_failing.txt tests.message.MessageTests.test_reference_unopened_on_close_error
E
======================================================================
ERROR: test_reference_unopened_on_close_error (tests.message.MessageTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/aconway/svn/qpid.0-9/python/qpid/testlib.py", line 192, in tearDown
    self.client.channel(0).connection_close(reply_code=200)
  File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 304, in <lambda>
    method = lambda *args, **kwargs: self.invoke(type, args, kwargs)
  File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 256, in invoke
    self.request(frame, self.queue_response, content)
  File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 241, in request
    self.requester.request(method, listener, content)
  File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 146, in request
    self.write(frame, content)
  File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 200, in write
    raise Closed(self.reason)
Closed: Method(name=close, id=50) (503, 'Attempt to use non-existent reference unopened', 120, 70) content = None

----------------------------------------------------------------------
Ran 1 test in 0.539s


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


[jira] Updated: (QPID-409) Race condition in python client on 0-9 branch.

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

Alan Conway updated QPID-409:
-----------------------------

    Description: 
Sporadically, tests that deliberately cause connection errors are failing (see below.) From the stack trace it seems that in some circumstances the connection can be closed without setting the client.closed flag.

The trunk is not affected because tearDown assumes the client will close the connection.

[aconway@scooter python]$ ./run-tests -I cpp_failing.txt tests.message.MessageTests.test_reference_unopened_on_close_error
E
======================================================================
ERROR: test_reference_unopened_on_close_error (tests.message.MessageTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/aconway/svn/qpid.0-9/python/qpid/testlib.py", line 192, in tearDown
    self.client.channel(0).connection_close(reply_code=200)
  File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 304, in <lambda>
    method = lambda *args, **kwargs: self.invoke(type, args, kwargs)
  File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 256, in invoke
    self.request(frame, self.queue_response, content)
  File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 241, in request
    self.requester.request(method, listener, content)
  File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 146, in request
    self.write(frame, content)
  File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 200, in write
    raise Closed(self.reason)
Closed: Method(name=close, id=50) (503, 'Attempt to use non-existent reference unopened', 120, 70) content = None

----------------------------------------------------------------------
Ran 1 test in 0.539s


  was:
Sporadically, tests that deliberately cause connection errors are failing (see below.) From the stack trace it seems that in some circumstances the connection can be closed without setting the client.closed flag.

[aconway@scooter python]$ ./run-tests -I cpp_failing.txt tests.message.MessageTests.test_reference_unopened_on_close_error
E
======================================================================
ERROR: test_reference_unopened_on_close_error (tests.message.MessageTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/aconway/svn/qpid.0-9/python/qpid/testlib.py", line 192, in tearDown
    self.client.channel(0).connection_close(reply_code=200)
  File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 304, in <lambda>
    method = lambda *args, **kwargs: self.invoke(type, args, kwargs)
  File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 256, in invoke
    self.request(frame, self.queue_response, content)
  File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 241, in request
    self.requester.request(method, listener, content)
  File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 146, in request
    self.write(frame, content)
  File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 200, in write
    raise Closed(self.reason)
Closed: Method(name=close, id=50) (503, 'Attempt to use non-existent reference unopened', 120, 70) content = None

----------------------------------------------------------------------
Ran 1 test in 0.539s



> Race condition in python client on 0-9 branch.
> ----------------------------------------------
>
>                 Key: QPID-409
>                 URL: https://issues.apache.org/jira/browse/QPID-409
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Client
>            Reporter: Alan Conway
>
> Sporadically, tests that deliberately cause connection errors are failing (see below.) From the stack trace it seems that in some circumstances the connection can be closed without setting the client.closed flag.
> The trunk is not affected because tearDown assumes the client will close the connection.
> [aconway@scooter python]$ ./run-tests -I cpp_failing.txt tests.message.MessageTests.test_reference_unopened_on_close_error
> E
> ======================================================================
> ERROR: test_reference_unopened_on_close_error (tests.message.MessageTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/aconway/svn/qpid.0-9/python/qpid/testlib.py", line 192, in tearDown
>     self.client.channel(0).connection_close(reply_code=200)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 304, in <lambda>
>     method = lambda *args, **kwargs: self.invoke(type, args, kwargs)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 256, in invoke
>     self.request(frame, self.queue_response, content)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 241, in request
>     self.requester.request(method, listener, content)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 146, in request
>     self.write(frame, content)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 200, in write
>     raise Closed(self.reason)
> Closed: Method(name=close, id=50) (503, 'Attempt to use non-existent reference unopened', 120, 70) content = None
> ----------------------------------------------------------------------
> Ran 1 test in 0.539s

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


[jira] Closed: (QPID-409) Race condition in python client on 0-9 branch.

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

Alan Conway closed QPID-409.
----------------------------

    Resolution: Fixed

> Race condition in python client on 0-9 branch.
> ----------------------------------------------
>
>                 Key: QPID-409
>                 URL: https://issues.apache.org/jira/browse/QPID-409
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Client
>            Reporter: Alan Conway
>         Assigned To: Alan Conway
>
> Sporadically, tests that deliberately cause connection errors are failing (see below.) From the stack trace it seems that in some circumstances the connection can be closed without setting the client.closed flag.
> The trunk is not affected because tearDown assumes the client will close the connection.
> [aconway@scooter python]$ ./run-tests -I cpp_failing.txt tests.message.MessageTests.test_reference_unopened_on_close_error
> E
> ======================================================================
> ERROR: test_reference_unopened_on_close_error (tests.message.MessageTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/aconway/svn/qpid.0-9/python/qpid/testlib.py", line 192, in tearDown
>     self.client.channel(0).connection_close(reply_code=200)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 304, in <lambda>
>     method = lambda *args, **kwargs: self.invoke(type, args, kwargs)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 256, in invoke
>     self.request(frame, self.queue_response, content)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 241, in request
>     self.requester.request(method, listener, content)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 146, in request
>     self.write(frame, content)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 200, in write
>     raise Closed(self.reason)
> Closed: Method(name=close, id=50) (503, 'Attempt to use non-existent reference unopened', 120, 70) content = None
> ----------------------------------------------------------------------
> Ran 1 test in 0.539s

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


[jira] Updated: (QPID-409) Race condition in python client on 0-9 branch.

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

Alan Conway updated QPID-409:
-----------------------------

    Component/s: Python Client

> Race condition in python client on 0-9 branch.
> ----------------------------------------------
>
>                 Key: QPID-409
>                 URL: https://issues.apache.org/jira/browse/QPID-409
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Client
>            Reporter: Alan Conway
>
> Sporadically, tests that deliberately cause connection errors are failing (see below.) From the stack trace it seems that in some circumstances the connection can be closed without setting the client.closed flag.
> [aconway@scooter python]$ ./run-tests -I cpp_failing.txt tests.message.MessageTests.test_reference_unopened_on_close_error
> E
> ======================================================================
> ERROR: test_reference_unopened_on_close_error (tests.message.MessageTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/aconway/svn/qpid.0-9/python/qpid/testlib.py", line 192, in tearDown
>     self.client.channel(0).connection_close(reply_code=200)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 304, in <lambda>
>     method = lambda *args, **kwargs: self.invoke(type, args, kwargs)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 256, in invoke
>     self.request(frame, self.queue_response, content)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 241, in request
>     self.requester.request(method, listener, content)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 146, in request
>     self.write(frame, content)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 200, in write
>     raise Closed(self.reason)
> Closed: Method(name=close, id=50) (503, 'Attempt to use non-existent reference unopened', 120, 70) content = None
> ----------------------------------------------------------------------
> Ran 1 test in 0.539s

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


[jira] Assigned: (QPID-409) Race condition in python client on 0-9 branch.

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

Alan Conway reassigned QPID-409:
--------------------------------

    Assignee: Alan Conway

> Race condition in python client on 0-9 branch.
> ----------------------------------------------
>
>                 Key: QPID-409
>                 URL: https://issues.apache.org/jira/browse/QPID-409
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Client
>            Reporter: Alan Conway
>         Assigned To: Alan Conway
>
> Sporadically, tests that deliberately cause connection errors are failing (see below.) From the stack trace it seems that in some circumstances the connection can be closed without setting the client.closed flag.
> The trunk is not affected because tearDown assumes the client will close the connection.
> [aconway@scooter python]$ ./run-tests -I cpp_failing.txt tests.message.MessageTests.test_reference_unopened_on_close_error
> E
> ======================================================================
> ERROR: test_reference_unopened_on_close_error (tests.message.MessageTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/aconway/svn/qpid.0-9/python/qpid/testlib.py", line 192, in tearDown
>     self.client.channel(0).connection_close(reply_code=200)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 304, in <lambda>
>     method = lambda *args, **kwargs: self.invoke(type, args, kwargs)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 256, in invoke
>     self.request(frame, self.queue_response, content)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 241, in request
>     self.requester.request(method, listener, content)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 146, in request
>     self.write(frame, content)
>   File "/home/aconway/svn/qpid.0-9/python/qpid/peer.py", line 200, in write
>     raise Closed(self.reason)
> Closed: Method(name=close, id=50) (503, 'Attempt to use non-existent reference unopened', 120, 70) content = None
> ----------------------------------------------------------------------
> Ran 1 test in 0.539s

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