You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Dejan Bosanac (JIRA)" <ji...@apache.org> on 2010/09/20 13:43:40 UTC

[jira] Created: (AMQ-2927) Implement custom brokerId assignment strategy

Implement custom brokerId assignment strategy
---------------------------------------------

                 Key: AMQ-2927
                 URL: https://issues.apache.org/activemq/browse/AMQ-2927
             Project: ActiveMQ
          Issue Type: New Feature
    Affects Versions: 5.4.0
            Reporter: Dejan Bosanac
            Assignee: Dejan Bosanac


In network of brokers, duplicate route detection is done by checking broker ids. After the restart, the broker ids change, which can cause duplicate routes and messages stuck due to reached ttl.

We need to provide a mechanism for users to configure how their broker ids are assigned and make sure that they stay the same after the restart. Which will ensure correct duplicate route detection even after some of the broker in the mesh is restarted.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (AMQ-2927) Implement custom brokerId assignment strategy

Posted by "Dejan Bosanac (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-2927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dejan Bosanac resolved AMQ-2927.
--------------------------------

    Fix Version/s: 5.5.0
       Resolution: Fixed

Fixed with svn revision 999924.

Now it's possible to configure custom broker id in the config file, like

<broker xmlns="http://activemq.apache.org/schema/core" brokerName="brokerA" brokerId="brokerA">
</broker>

This will ensure that broker always has the same broker id and prevent problems with duplicate routes in network when broker is restarted.

Extra caution is needed to avoid having multiple brokers with the same ID.

> Implement custom brokerId assignment strategy
> ---------------------------------------------
>
>                 Key: AMQ-2927
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2927
>             Project: ActiveMQ
>          Issue Type: New Feature
>    Affects Versions: 5.4.0
>            Reporter: Dejan Bosanac
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>
> In network of brokers, duplicate route detection is done by checking broker ids. After the restart, the broker ids change, which can cause duplicate routes and messages stuck due to reached ttl.
> We need to provide a mechanism for users to configure how their broker ids are assigned and make sure that they stay the same after the restart. Which will ensure correct duplicate route detection even after some of the broker in the mesh is restarted.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.