You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Daněk (Jira)" <ji...@apache.org> on 2021/11/06 21:01:00 UTC

[jira] [Commented] (DISPATCH-2279) tests\test_broker.py causes invalid operation under Windows

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

Jiri Daněk commented on DISPATCH-2279:
--------------------------------------

There is an {{EventInjector}} in there, so it is exactly PROTON-2286.

h3. Reproducer

{code}
if __name__ == '__main__':
    from system_tests_link_routes import ConnLinkRouteService
    fake_broker = ConnLinkRouteService('127.0.0.1:44552/baf', container_id='pepa', config=[("clr1",
                                                                      {"pattern": "flea.*",
                                                                       "direction": "out"}),
                                                                     ("clr2",
                                                                      {"pattern": "flea.*",
                                                                       "direction": "in"})])
    fake_broker .join()
{code}

> tests\test_broker.py causes invalid operation under Windows
> -----------------------------------------------------------
>
>                 Key: DISPATCH-2279
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-2279
>             Project: Qpid Dispatch
>          Issue Type: Sub-task
>    Affects Versions: 1.17.0
>         Environment: Windows; Python Qpid Proton 0.36.0
>            Reporter: Jiri Daněk
>            Priority: Major
>
> The issue looks like PROTON-2286. The trouble is, looking at the code, I don't see any custom events being used. There is probably something hidden which is causing the issue.
> I haven't yet managed to compile Python Proton on my machine, so I cannot investigate better. That would be a next step.
> https://github.com/jiridanek/qpid-dispatch/runs/4126448173?check_suite_focus=true#step:14:477
> {noformat}
> 17: Test command: C:\hostedtoolcache\windows\Python\3.9.7\x64\python3.exe "D:/a/qpid-dispatch/qpid-dispatch/qpid-dispatch/build/tests/run.py" "-m" "unittest" "-v" "system_tests_link_route_credit"
> 17: Test timeout computed to be: 600
> 15: ERROR
> 15: test_config_file_bad (system_tests_link_routes.ConnectionLinkRouteTest) ... FAIL
> 15: test_mgmt (system_tests_link_routes.ConnectionLinkRouteTest) ... ERROR
> 15: test_send_receive (system_tests_link_routes.ConnectionLinkRouteTest) ... Exception in thread Thread-2:
> 15: Traceback (most recent call last):
> 15:   File "C:\hostedtoolcache\windows\Python\3.9.7\x64\lib\threading.py", line 973, in _bootstrap_inner
> 15:     self.run()
> 15:   File "C:\hostedtoolcache\windows\Python\3.9.7\x64\lib\threading.py", line 910, in run
> 15:     self._target(*self._args, **self._kwargs)
> 15:   File "D:\a/qpid-dispatch/qpid-dispatch/qpid-dispatch/tests\test_broker.py", line 113, in _main
> 15:     while self._container.process():
> 15:   File "C:\hostedtoolcache\windows\Python\3.9.7\x64\lib\site-packages\proton\_reactor.py", line 259, in process
> 15:     event.dispatch(self._global_handler)
> 15:   File "C:\hostedtoolcache\windows\Python\3.9.7\x64\lib\site-packages\proton\_events.py", line 161, in dispatch
> 15:     _dispatch(handler, type.method, self)
> 15:   File "C:\hostedtoolcache\windows\Python\3.9.7\x64\lib\site-packages\proton\_events.py", line 130, in _dispatch
> 15:     handler.on_unhandled(method, *args)
> 15:   File "C:\hostedtoolcache\windows\Python\3.9.7\x64\lib\site-packages\proton\_reactor.py", line 903, in on_unhandled
> 15:     event.dispatch(self.base)
> 15:   File "C:\hostedtoolcache\windows\Python\3.9.7\x64\lib\site-packages\proton\_events.py", line 161, in dispatch
> 15:     _dispatch(handler, type.method, self)
> 15:   File "C:\hostedtoolcache\windows\Python\3.9.7\x64\lib\site-packages\proton\_events.py", line 128, in _dispatch
> 15:     m(*args)
> 15:   File "C:\hostedtoolcache\windows\Python\3.9.7\x64\lib\site-packages\proton\_handlers.py", line 1152, in on_reactor_quiesced
> 15:     readable, writable, expired = self._selector.select(r.timeout)
> 15:   File "C:\hostedtoolcache\windows\Python\3.9.7\x64\lib\site-packages\proton\_io.py", line 162, in select
> 15:     r, w, ex = select_inner(timeout)
> 15:   File "C:\hostedtoolcache\windows\Python\3.9.7\x64\lib\site-packages\proton\_io.py", line 148, in select_inner
> 15:     return IO.select(r, w, w, timeout)
> 15:   File "C:\hostedtoolcache\windows\Python\3.9.7\x64\lib\site-packages\proton\_io.py", line 74, in select
> 15:     return select.select(*args, **kwargs)
> 15: OSError: [WinError 10038] An operation was attempted on something that is not a socket
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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