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

Robbie Gemmell commented on DISPATCH-1114:
------------------------------------------

As mentioned on PROTON-1927, creating a sender and receiver link with the same 
name is allowed. I'd agree it might be nice to avoid it to make things more 
useful later however (e.g, in qpid-jms we prefix generated names with the use 
of the link when possible, e.g is it a sender, receiver, tx coordinator). The 
tests could supply their own names rather than relying on proton to generate 
them.

> Self test framework creates links with duplicate names
> ------------------------------------------------------
>
>                 Key: DISPATCH-1114
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1114
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 1.3.0
>            Reporter: Chuck Rolke
>            Assignee: Chuck Rolke
>            Priority: Major
>
> A common pattern for self tests is to set up a sender and a receiver.
> {color:#94558d}self{color}.receiver = 
> event.container.create_receiver({color:#94558d}self{color}.conn, 
> {color:#008080}"org.apache.dev"{color})
> {color:#94558d}self{color}.sender = 
> event.container.create_sender({color:#94558d}self{color}.conn, 
> {color:#008080}"org.apache.dev"{color})
> Over the wire this creates two links with the same name.
> test-router.log:117:2018-09-05 10:04:29.300741 -0400 SERVER (trace) [2]:0 <- 
> @attach(18)[name="6e068798-47ad-4857-b9a4-72919d2f6e8b-org.apache.dev", 
> handle=0, role=true, snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) 
> [address="org.apache.dev", durable=0, timeout=0, dynamic=false], 
> target=@target(41) [durable=0, timeout=0, dynamic=false], 
> initial-delivery-count=0, max-message-size=0] 
> (/home/chug/git/qpid-dispatch/src/server.c:106)
> test-router.log:118:2018-09-05 10:04:29.300782 -0400 SERVER (trace) [2]:0 <- 
> @attach(18)[name="6e068798-47ad-4857-b9a4-72919d2f6e8b-org.apache.dev", 
> handle=1, role=false, snd-settle-mode=2, rcv-settle-mode=0, 
> source=@source(40) [durable=0, timeout=0, dynamic=false], target=@target(41) 
> [address="org.apache.dev", durable=0, timeout=0, dynamic=false], 
> initial-delivery-count=0, max-message-size=0] 
> (/home/chug/git/qpid-dispatch/src/server.c:106)



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to