qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DISPATCH-1254) qdstat sometimes raises "TypeError: 'NoneType' object is not iterable"
Date Fri, 25 Jan 2019 14:22:00 GMT

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

ASF subversion and git services commented on DISPATCH-1254:
-----------------------------------------------------------

Commit 6991beced175939222c92cffd3c230bd281be8c4 in qpid-dispatch's branch refs/heads/master
from Ganesh Murthy
[ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=6991bec ]

DISPATCH-1254 - Fix a corner cases, usually when a router is just starting up, where the validOrigins
list can come across as None. This closes #444.


> qdstat sometimes raises "TypeError: 'NoneType' object is not iterable"
> ----------------------------------------------------------------------
>
>                 Key: DISPATCH-1254
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1254
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Routing Engine
>    Affects Versions: 1.2.0
>            Reporter: Alan Conway
>            Assignee: Ganesh Murthy
>            Priority: Major
>         Attachments: qdr-chain.sh
>
>
> Calling qdstat -nv repeatedly to check the status of a router network sometimes raises
a "nonetype not iterable error.
> Reproducer: 
> make install this version of quiver (extented to allow separate send/receive URLS).
If you have maven installed you should edit the makefile to disable the Java arrow as the
build is very slow and fragile:
>     [https://github.com/alanconway/quiver]
> run the attached script like this:
>     qdr-chain.sh quiver --arrow c  --count 1000 --send-url //:10001/x //:10001/x 
   
> The script generates config files, starts four routers, waits for qdstat -nv to show
the full topology and then runs quiver as directed. Edit the script to change logging or
other config settings. Log and config files are created in the current directory.
> WARNING the script will kill any running qdrouterd.
> While waiting for the router network to stabilize I see output like the following. The initial
connection error is expected as the router has not yet started, but the TypeError in the middle
is unexpected.
>  
> {{ConnectionException: Connection amqp://localhost:10001/$management disconnected: Condition('proton:io',
'recv: errno: 111') }}
> {{waiting... }}
> {{Routers in the Network }}
> {{ router-id next-hop link ver cost neighbors valid-origins }}
> {{ ================================================================ }}
> {{ 1 (self) - 1 [] [] }}
> {{waiting... }}
> {{Routers in the Network }}
> {{ router-id next-hop link ver cost neighbors valid-origins }}
> {{ ================================================================ }}
> {{ 1 (self) - 1 [] [] }}
> {{waiting... }}
> {{Routers in the Network }}
> {{ router-id next-hop link ver cost neighbors valid-origins }}
> {{ ================================================================ }}
> {{ 1 (self) - 1 [] [] }}
> {{waiting... }}
> {{TypeError: 'NoneType' object is not iterable }}
> {{waiting... }}
> {{Routers in the Network }}
> {{Last Topology Change: Wednesday Jan 23 15:40:34 2019 GMT }}
> {{ router-id next-hop link ver cost neighbors valid-origins }}
> {{ ================================================================= }}
> {{ 1 (self) - 1 ['2'] [] }}
> {{ 2 - 0 1 1 ['1', '3'] [] }}
> {{ 3 2 - 2 [] [] }}
> {{waiting... }}
> {{Routers in the Network }}
> {{Last Topology Change: Wednesday Jan 23 15:40:39 2019 GMT }}
> {{ router-id next-hop link ver cost neighbors valid-origins }}
> {{ ================================================================= }}
> {{ 1 (self) - 1 ['2'] [] }}
> {{ 2 - 0 1 1 ['1', '3'] [] }}
> {{ 3 2 - 1 2 ['2', '4'] [] }}
> {{ 4 2 - 1 3 ['3'] [] }}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message