Hello again,
Now to the next issue: I can see the "name attribute in the query but I cannot
delete the address (It still appears in "qdstat -a")
Steps to reproduce using the same router configuration below:
qdstat -b amqp://localhost:10801 -a
Router Addresses
class addr phs distrib in-proc local remote cntnr
in out thru to-proc from-proc
==============================================================================
mobile testQueue 1 balanced 0 0 0 0
0 0 0 0 0
mobile testQueue 0 balanced 0 1 0 0
0 0 0 0 0
-------------------------------------------------------------
qdmanage -b amqp://localhost:10801 query --type=address
[
{
"name": "testQueue.addr",
"ingressPhase": 0,
"prefix": "testQueue",
"waypoint": true,
"distribution": "balanced",
"type": "org.apache.qpid.dispatch.router.config.address",
"identity": "1",
"egressPhase": 1
}
]
--------------------------------
qdmanage -b amqp://localhost:10801 delete --type=address --name testQueue.addr
---------------------------------
qdmanage -b amqp://localhost:10801 query --type=address
[]
-------------------------------
qdstat -b amqp://localhost:10801 -a
Router Addresses
class addr phs distrib in-proc local remote cntnr
in out thru to-proc from-proc
==============================================================================
mobile testQueue 1 balanced 0 0 0 0
0 0 0 0 0
mobile testQueue 0 balanced 0 1 0 0
0 0 0 0 0
Regards,
Adel
________________________________
From: Adel Boutros <[email protected]>
Sent: Friday, September 30, 2016 11:30 AM
To: [email protected]
Subject: Re: [Dispatch router 0.6.1] Configuration bugs
Thank you Gordon!!
I manually applied the commit of DISPATCH-500 and tested it on top of 0.6.1
version and it solved my issue.
Regards,
Adel
________________________________
From: Gordon Sim <[email protected]>
Sent: Friday, September 30, 2016 10:12:23 AM
To: [email protected]
Subject: Re: [Dispatch router 0.6.1] Configuration bugs
On 30/09/16 08:59, Adel Boutros wrote:
> Hello,
>
>
> As a follow up to my previous thread, I am having some issues with the
> dispatch router.
>
> I will start with the first one here:
>
> It seems the "name" attribute doesn't work for all types of entities. So, I
> cannot delete them using the "name" attribute.
I think this may be https://issues.apache.org/jira/browse/DISPATCH-500,
which is now fixed on master.
> I have tested it on 4 types of entities and here are my findings:
>
> * Connector --> It works
>
> * Listener --> It works
>
> * Address --> It fails
>
> * AutoLink --> It fails
>
>
> With the below config, when I query the dispatch router, it doesn't show the
> "name" attribute for my "address":
>
>
> qdmanage -b amqp://localhost:10801 query --type=address
> [
> {
> "egressPhase": 1,
> "ingressPhase": 0,
> "prefix": "testQueue",
> "waypoint": true,
> "distribution": "balanced",
> "type": "org.apache.qpid.dispatch.router.config.address",
> "identity": "1"
> }
> ]
>
> qdmanage -b amqp://localhost:10801 query --type=listener
> [
> {
> "stripAnnotations": "both",
> "addr": "0.0.0.0",
> "requireSsl": false,
> "idleTimeoutSeconds": 16,
> "saslMechanisms": "ANONYMOUS",
> "maxFrameSize": 16384,
> "requireEncryption": false,
> "host": "127.0.0.1",
> "cost": 1,
> "role": "normal",
> "authenticatePeer": false,
> "type": "org.apache.qpid.dispatch.listener",
> "port": "10801",
> "identity": "listener/127.0.0.1:10801:mainListener",
> "name": "mainListener"
> }
> ]
>
>
> -----------------------------------------------------------
> Router config:
> router {
> mode: interior
> routerId: router.10801
> }
>
> listener {
> name: mainListener
> addr: 0.0.0.0
> port: 10801
> role: normal
> saslMechanisms: ANONYMOUS
> requireSsl: no
> authenticatePeer: no
> }
>
> address {
> name: testQueue.addr
> prefix: testQueue
> waypoint: yes
> }
>
>
> Regards,
>
> Adel
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]