You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ganesh Murthy (Jira)" <ji...@apache.org> on 2021/05/17 20:52:00 UTC

[jira] [Commented] (DISPATCH-1986) [http1] system_tests_http1_adaptor failure due to Address already in use issue

    [ https://issues.apache.org/jira/browse/DISPATCH-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17346431#comment-17346431 ] 

Ganesh Murthy commented on DISPATCH-1986:
-----------------------------------------

https://github.com/apache/qpid-dispatch/runs/2603957727?check_suite_focus=true#step:9:5437

 
{noformat}
 69: /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/tests/http1_tests.py:221: in __init__
69:     tests)
69: /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/tests/http1_tests.py:130: in __init__
69:     HTTPServer.__init__(self, addr, handler_cls)
69: /opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/socketserver.py:452: in __init__
69:     self.server_bind()
69: /opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/http/server.py:137: in server_bind
69:     socketserver.TCPServer.server_bind(self)
69: 
69: self = <http1_tests.MyHTTPServer object at 0x7f0a28b5e3d0>
69: 69:     def server_bind(self):
69:         """Called by constructor to bind the socket.
69: 69:         May be overridden.
69:        """
69:         if self.allow_reuse_address:
69:             self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
69: >       self.socket.bind(self.server_address)
69: E       OSError: [Errno 98] Address already in use
69: 69: /opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/socketserver.py:466: OSError
69: =============================== warnings summary ===============================
69: ../../tests/http1_tests.py:210
69:   /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/tests/http1_tests.py:210: PytestCollectionWarning: cannot collect test class 'TestServer' because it has a __init__ constructor (from: )
69:     class TestServer(object):
69: 
69: -- Docs: https://docs.pytest.org/en/stable/warnings.html
69: - generated xml file: /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/build/tests/junitxmls/system_tests_http1_over_tcp.xml -
69: =========================== short test summary info ============================
69: FAILED ::Http1OverTcpEdge2EdgeTest::test_01_concurrent_requests - AssertionEr...
69: FAILED ::Http1OverTcpEdge2EdgeTest::test_02_credit_replenish - OSError: [Errn...
69: FAILED ::Http1OverTcpEdge2EdgeTest::test_03_server_reconnect - OSError: [Errn...
69: FAILED ::Http1OverTcpEdge2EdgeTest::test_04_server_pining_for_the_fjords - OS...
69: FAILED ::Http1OverTcpEdge2EdgeTest::test_05_large_streaming_msg - OSError: [E...
69: ============== 5 failed, 7 passed, 1 warning in 62.75s (0:01:02) ===============
36/36 Test #69: system_tests_http1_over_tcp .............***Failed   62.98 sec{noformat}

> [http1] system_tests_http1_adaptor failure due to Address already in use issue
> ------------------------------------------------------------------------------
>
>                 Key: DISPATCH-1986
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1986
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Protocol Adaptors
>    Affects Versions: 1.15.0
>            Reporter: Ganesh Murthy
>            Assignee: Ken Giusti
>            Priority: Major
>             Fix For: 1.17.0
>
>
> {noformat}
> 68: test_01_mgmt (system_tests_http1_adaptor.Http1AdaptorManagementTest) ... ok
> 68: test_000_stats (system_tests_http1_adaptor.Http1AdaptorOneRouterTest) ... ok
> 68: test_001_get (system_tests_http1_adaptor.Http1AdaptorOneRouterTest) ... ok
> 68: test_002_head (system_tests_http1_adaptor.Http1AdaptorOneRouterTest) ... ok
> 68: test_003_post (system_tests_http1_adaptor.Http1AdaptorOneRouterTest) ... ok
> 68: test_004_put (system_tests_http1_adaptor.Http1AdaptorOneRouterTest) ... ok
> 68: test_005_get_10 (system_tests_http1_adaptor.Http1AdaptorOneRouterTest) ... ERROR
> 68: test_006_head_10 (system_tests_http1_adaptor.Http1AdaptorOneRouterTest) ... ok
> 68: test_007_post_10 (system_tests_http1_adaptor.Http1AdaptorOneRouterTest) ... ok
> 68: test_008_put_10 (system_tests_http1_adaptor.Http1AdaptorOneRouterTest) ... ok
> 68: 
> 68: Router INT.A debug dump file:
> 68: >>>>
> 68: alloc.c: Items of type 'qd_buffer_t' remain allocated at shutdown: 16 (SUPPRESSED)
> 68: 
> 68: <<<<
> 68: test_01_backpressure_client (system_tests_http1_adaptor.Http1AdaptorQ2Standalone) ... ok
> 68: test_02_backpressure_server (system_tests_http1_adaptor.Http1AdaptorQ2Standalone) ... ok
> 68: 
> 68: ======================================================================
> 68: ERROR: test_02_credit_replenish (system_tests_http1_adaptor.Http1AdaptorEdge2EdgeTest)
> 68: ----------------------------------------------------------------------
> 68: Traceback (most recent call last):
> 68:   File "/home/travis/build/apache/qpid-dispatch/tests/system_tests_http1_adaptor.py", line 1238, in test_02_credit_replenish
> 68:     tests=TESTS)
> 68:   File "/home/travis/build/apache/qpid-dispatch/tests/system_tests_http1_adaptor.py", line 256, in __init__
> 68:     tests)
> 68:   File "/home/travis/build/apache/qpid-dispatch/tests/system_tests_http1_adaptor.py", line 234, in __init__
> 68:     HTTPServer.__init__(self, addr, handler_cls)
> 68:   File "/usr/lib/python2.7/SocketServer.py", line 417, in __init__
> 68:     self.server_bind()
> 68:   File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
> 68:     SocketServer.TCPServer.server_bind(self)
> 68:   File "/usr/lib/python2.7/SocketServer.py", line 431, in server_bind
> 68:     self.socket.bind(self.server_address)
> 68:   File "/usr/lib/python2.7/socket.py", line 228, in meth
> 68:     return getattr(self._sock,name)(*args)
> 68: error: [Errno 98] Address already in use
> 68: 
> 68: ======================================================================
> 68: ERROR: test_03_server_reconnect (system_tests_http1_adaptor.Http1AdaptorEdge2EdgeTest)
> 68: ----------------------------------------------------------------------
> 68: Traceback (most recent call last):
> 68:   File "/home/travis/build/apache/qpid-dispatch/tests/system_tests_http1_adaptor.py", line 1270, in test_03_server_reconnect
> 68:     tests=TESTS)
> 68:   File "/home/travis/build/apache/qpid-dispatch/tests/system_tests_http1_adaptor.py", line 256, in __init__
> 68:     tests)
> 68:   File "/home/travis/build/apache/qpid-dispatch/tests/system_tests_http1_adaptor.py", line 234, in __init__
> 68:     HTTPServer.__init__(self, addr, handler_cls)
> 68:   File "/usr/lib/python2.7/SocketServer.py", line 417, in __init__
> 68:     self.server_bind()
> 68:   File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
> 68:     SocketServer.TCPServer.server_bind(self)
> 68:   File "/usr/lib/python2.7/SocketServer.py", line 431, in server_bind
> 68:     self.socket.bind(self.server_address)
> 68:   File "/usr/lib/python2.7/socket.py", line 228, in meth
> 68:     return getattr(self._sock,name)(*args)
> 68: error: [Errno 98] Address already in use
> 68: 
> 68: ======================================================================
> 68: ERROR: test_04_server_pining_for_the_fjords (system_tests_http1_adaptor.Http1AdaptorEdge2EdgeTest)
> 68: ----------------------------------------------------------------------
> 68: Traceback (most recent call last):
> 68:   File "/home/travis/build/apache/qpid-dispatch/tests/system_tests_http1_adaptor.py", line 1321, in test_04_server_pining_for_the_fjords
> 68:     tests=TESTS)
> 68:   File "/home/travis/build/apache/qpid-dispatch/tests/system_tests_http1_adaptor.py", line 256, in __init__
> 68:     tests)
> 68:   File "/home/travis/build/apache/qpid-dispatch/tests/system_tests_http1_adaptor.py", line 234, in __init__
> 68:     HTTPServer.__init__(self, addr, handler_cls)
> 68:   File "/usr/lib/python2.7/SocketServer.py", line 417, in __init__
> 68:     self.server_bind()
> 68:   File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
> 68:     SocketServer.TCPServer.server_bind(self)
> 68:   File "/usr/lib/python2.7/SocketServer.py", line 431, in server_bind
> 68:     self.socket.bind(self.server_address)
> 68:   File "/usr/lib/python2.7/socket.py", line 228, in meth
> 68:     return getattr(self._sock,name)(*args)
> 68: error: [Errno 98] Address already in use
> 68: 
> 68: ======================================================================
> 68: ERROR: test_05_large_streaming_msg (system_tests_http1_adaptor.Http1AdaptorEdge2EdgeTest)
> 68: ----------------------------------------------------------------------
> 68: Traceback (most recent call last):
> 68:   File "/home/travis/build/apache/qpid-dispatch/tests/system_tests_http1_adaptor.py", line 1428, in test_05_large_streaming_msg
> 68:     tests=TESTS_11)
> 68:   File "/home/travis/build/apache/qpid-dispatch/tests/system_tests_http1_adaptor.py", line 256, in __init__
> 68:     tests)
> 68:   File "/home/travis/build/apache/qpid-dispatch/tests/system_tests_http1_adaptor.py", line 234, in __init__
> 68:     HTTPServer.__init__(self, addr, handler_cls)
> 68:   File "/usr/lib/python2.7/SocketServer.py", line 417, in __init__
> 68:     self.server_bind()
> 68:   File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
> 68:     SocketServer.TCPServer.server_bind(self)
> 68:   File "/usr/lib/python2.7/SocketServer.py", line 431, in server_bind
> 68:     self.socket.bind(self.server_address)
> 68:   File "/usr/lib/python2.7/socket.py", line 228, in meth
> 68:     return getattr(self._sock,name)(*args)
> 68: error: [Errno 98] Address already in use
> 68: 
> 68: ======================================================================
> 68: ERROR: test_005_get_10 (system_tests_http1_adaptor.Http1AdaptorOneRouterTest)
> 68: ----------------------------------------------------------------------
> 68: Traceback (most recent call last):
> 68:   File "/home/travis/build/apache/qpid-dispatch/tests/system_tests_http1_adaptor.py", line 956, in test_005_get_10
> 68:     self._do_request(client, self.TESTS_10["GET"])
> 68:   File "/home/travis/build/apache/qpid-dispatch/tests/system_tests_http1_adaptor.py", line 920, in _do_request
> 68:     rsp = client.getresponse()
> 68:   File "/usr/lib/python2.7/httplib.py", line 1182, in getresponse
> 68:     response.begin()
> 68:   File "/usr/lib/python2.7/httplib.py", line 467, in begin
> 68:     version, status, reason = self._read_status()
> 68:   File "/usr/lib/python2.7/httplib.py", line 423, in _read_status
> 68:     line = self.fp.readline(_MAXLINE + 1)
> 68:   File "/usr/lib/python2.7/socket.py", line 480, in readline
> 68:     data = self._sock.recv(self._rbufsize)
> 68: timeout: timed out
> 68: 
> 68: ======================================================================
> 68: FAIL: test_01_concurrent_requests (system_tests_http1_adaptor.Http1AdaptorEdge2EdgeTest)
> 68: ----------------------------------------------------------------------
> 68: Traceback (most recent call last):
> 68:   File "/home/travis/build/apache/qpid-dispatch/tests/system_tests_http1_adaptor.py", line 1206, in test_01_concurrent_requests
> 68:     self.assertEqual(repeat_ct * REQ_CT, client.count)
> 68: AssertionError: 30 != 25 {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org