[jira] [Commented] (DISPATCH-773) Implement a 2-phase start in the Dispatch Router

2017-09-21 Thread Adel Boutros (JIRA)

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

Adel Boutros commented on DISPATCH-773:
---

Hello Ted,

* If a consumer connects and no address is configured, then a local address is 
created.
* If the address is created with Waypoint attribute, consumers and producers 
will not create local address.
If you confirm that both of my statements are true, then even for the dynamic 
addressing, we can avoid the problem by making sure addresses are created and 
configured before any consumers are attached.

Another solution I can see is to have an option which explicitly says this 
router will only use brokers for persistence. So the option would simply 
prohibit the creation of local addresses. In that case any consumer/producer 
trying to connect will receive an error ("amqp:not-found" for example). Does 
this solution map to your 2nd workaround (defaultDistribution to "unavailable") 
?

> Implement a 2-phase start in the Dispatch Router
> 
>
> Key: DISPATCH-773
> URL: https://issues.apache.org/jira/browse/DISPATCH-773
> Project: Qpid Dispatch
>  Issue Type: New Feature
>  Components: Routing Engine
>Reporter: Adel Boutros
>Assignee: Ted Ross
>
> All the needed information could be found here:
> http://qpid.2158936.n2.nabble.com/Dispatch-router-2-phase-start-td7663118.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Commented] (DISPATCH-773) Implement a 2-phase start in the Dispatch Router

2017-09-20 Thread Ted Ross (JIRA)

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

Ted Ross commented on DISPATCH-773:
---

Some workarounds for this that can be used now:
# Follow Gordon's suggestion (from the email thread) of having two listeners, 
one for management and one for endpoint connections.  Only open the second 
listener when the configuration is complete.
# Set the router's defaultDistribution to "unavailable".  This will cause 
attachment to unconfigured addresses to fail, forcing the clients to retry.

> Implement a 2-phase start in the Dispatch Router
> 
>
> Key: DISPATCH-773
> URL: https://issues.apache.org/jira/browse/DISPATCH-773
> Project: Qpid Dispatch
>  Issue Type: New Feature
>  Components: Routing Engine
>Reporter: Adel Boutros
>Assignee: Ted Ross
>
> All the needed information could be found here:
> http://qpid.2158936.n2.nabble.com/Dispatch-router-2-phase-start-td7663118.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Commented] (DISPATCH-773) Implement a 2-phase start in the Dispatch Router

2017-09-20 Thread Ted Ross (JIRA)

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

Ted Ross commented on DISPATCH-773:
---

I don't like the 2-phase start idea because I don't believe it solves the 
general problem.

This proposal would only be effective in a deployment where the address, 
autoLink, and linkRoute configuration is static and fully established at 
startup (in the first startup phase).  In the more general case, where address 
provisioning occurs in an ongoing fashion, the problem still exists.  For 
example, a queue/waypoint added to the configuration _must_ complete before any 
consumers attach subscriptions to that address, otherwise the consumer will 
interfere with deliveries sent to the queue.

I claim that the proper solution to the problem is to remove the race condition 
and make the router behave properly regardless of whether endpoints attach 
before or after addresses are configured.

> Implement a 2-phase start in the Dispatch Router
> 
>
> Key: DISPATCH-773
> URL: https://issues.apache.org/jira/browse/DISPATCH-773
> Project: Qpid Dispatch
>  Issue Type: New Feature
>  Components: Routing Engine
>Reporter: Adel Boutros
>Assignee: Ted Ross
>
> All the needed information could be found here:
> http://qpid.2158936.n2.nabble.com/Dispatch-router-2-phase-start-td7663118.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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