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 Danek (JIRA)" <ji...@apache.org> on 2016/05/26 11:31:12 UTC

[jira] [Commented] (DISPATCH-351) Crash after a sequence of qdmanage operations creating and destroying listener and connector

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

Jiri Danek commented on DISPATCH-351:
-------------------------------------

{noformat}
$ bash commands.bash 
+ qdmanage CREATE --type=connector --name=eaconn1 port=20021 host=0.0.0.0
{
  "verifyHostName": true, 
  "stripAnnotations": "both", 
  "name": "eaconn1", 
  "allowRedirect": true, 
  "idleTimeoutSeconds": 16, 
  "maxFrameSize": 65536, 
  "host": "0.0.0.0", 
  "cost": 1, 
  "role": "normal", 
  "type": "org.apache.qpid.dispatch.connector", 
  "port": "20021", 
  "identity": "connector/0.0.0.0:20021:eaconn1", 
  "addr": "127.0.0.1"
}
+ qdmanage CREATE --type=listener --name=eaconn1 port=20021 host=0.0.0.0
BadRequestStatus: org.apache.qpid.dispatch.connector: Duplicate value 'eaconn1' for unique attribute 'name'
+ qdmanage DELETE --type=connector --name=eaconn1
+ qdmanage CREATE --type=listener --name=eaconn1 port=20021 host=0.0.0.0
{
  "stripAnnotations": "both", 
  "name": "eaconn1", 
  "requireSsl": false, 
  "idleTimeoutSeconds": 16, 
  "maxFrameSize": 16384, 
  "requireEncryption": false, 
  "host": "0.0.0.0", 
  "cost": 1, 
  "role": "normal", 
  "authenticatePeer": false, 
  "type": "org.apache.qpid.dispatch.listener", 
  "port": "20021", 
  "identity": "listener/0.0.0.0:20021:eaconn1", 
  "addr": "127.0.0.1"
}
+ qdmanage DELETE --type=listener --name=eaconn1
ConnectionException: Connection amqp://0.0.0.0:amqp/$management disconnected
{noformat}

> Crash after a sequence of qdmanage operations creating and destroying listener and connector
> --------------------------------------------------------------------------------------------
>
>                 Key: DISPATCH-351
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-351
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Router Node
>    Affects Versions: 0.6.0
>         Environment: RHEL 6.8x
> Git tip at commit 87d0a406c6 "DISPATCH-339 - [From Ganesh Murthy] Properly handle default values for host/addr."
>            Reporter: Jiri Danek
>         Attachments: commands.bash, core.6635.backtrace, core.6635.bz2
>
>
> Start up {{qdrouterd}} with the default config and run the (uncommented) commands in {{commands.bash}}. Router crashes.
> {noformat}
> $ local/sbin/qdrouterd -c local/etc/qpid-dispatch/qdrouterd.conf 
> Thu May 26 13:16:49 2016 SERVER (info) Container Name: Router.A
> Thu May 26 13:16:49 2016 ROUTER (info) Router started in Standalone mode
> Thu May 26 13:16:49 2016 ROUTER_CORE (info) Router Core thread running. 0/Router.A
> Thu May 26 13:16:49 2016 ROUTER_CORE (info) In-process subscription M/$management
> Thu May 26 13:16:49 2016 ROUTER_CORE (info) In-process subscription L/$management
> Thu May 26 13:16:49 2016 AGENT (info) Activating management agent on $_management_internal
> Thu May 26 13:16:49 2016 ROUTER_CORE (info) In-process subscription L/$_management_internal
> Thu May 26 13:16:49 2016 DISPLAYNAME (info) Activating DisplayNameService on $displayname
> Thu May 26 13:16:49 2016 ROUTER_CORE (info) In-process subscription L/$displayname
> Thu May 26 13:16:49 2016 CONN_MGR (info) Configured Listener: 0.0.0.0:amqp proto=any role=normal
> Thu May 26 13:16:49 2016 POLICY (info) Policy configured maximumConnections: 0, policyFolder: '', access rules enabled: 'false'
> Thu May 26 13:16:49 2016 POLICY (info) Policy fallback defaultApplication is disabled
> Thu May 26 13:16:49 2016 SERVER (info) Operational, 4 Threads Running
> Thu May 26 13:16:58 2016 CONN_MGR (info) Configured Connector: 0.0.0.0:20021 proto=any role=normal
> Thu May 26 13:16:59 2016 CONN_MGR (info) Configured Listener: 0.0.0.0:20021 proto=any role=normal
> Thu May 26 13:16:59 2016 AGENT (error) Error dispatching Message(address=None, properties={'operation': 'CREATE', 'type': 'org.apache.qpid.dispatch.listener', 'name': 'eaconn1'}, body={'host': '0.0.0.0', 'type': 'org.apache.qpid.dispatch.listener', 'port': '20021', 'name': 'eaconn1'}, reply_to='amqp:/_topo/0/Router.A/temp.ozFLn7K3UkHpXm+', correlation_id=1L): org.apache.qpid.dispatch.connector: Duplicate value 'eaconn1' for unique attribute 'name'
> Traceback (most recent call last):
>   File "/home/vagrant/local/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 786, in receive
>     status, body = self.handle(request)
>   File "/home/vagrant/local/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 809, in handle
>     return self.create(request)
>   File "/home/vagrant/local/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 850, in create
>     return (CREATED, self._create(attributes).attributes)
>   File "/home/vagrant/local/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 825, in _create
>     self.entities.add_implementation(cimplementation, entity)
>   File "/home/vagrant/local/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 534, in add_implementation
>     self._add_implementation(implementation, adapter=adapter)
>   File "/home/vagrant/local/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 531, in _add_implementation
>     self.add(adapter)
>   File "/home/vagrant/local/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py", line 520, in add
>     self.schema.validate_full(chain(iter([entity]), iter(self.entities)))
>   File "/home/vagrant/local/lib/qpid-dispatch/python/qpid_dispatch_internal/management/qdrouter.py", line 59, in validate_full
>     super(QdSchema, self).validate_all(entities, **kwargs)
>   File "/home/vagrant/local/lib/qpid-dispatch/python/qpid_dispatch_internal/management/schema.py", line 597, in validate_all
>     check_singleton=check_singleton)
>   File "/home/vagrant/local/lib/qpid-dispatch/pytho
> Thu May 26 13:16:59 2016 CONN_MGR (info) Configured Listener: 0.0.0.0:20021 proto=any role=normal
> Thu May 26 13:16:59 2016 DRIVER (error) bind: Address already in use
> Segmentation fault (core dumped)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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