Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.3.0
    • Component/s: Connector
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      We have a use case of configuring two pair of master/slave as follows:
      A-master/A-slave
      B-master/B-slave

      and for client(producer/consumer) we use failover://(tcp://A-master, tcp://B-master) so A-slave and B-slave only is used to replicate the data their master receives. In this case, we want to use failover://(tcp://A-master) as masterConnectorURI for A-slave, similar to B. so that when A-master goes down and gets restarted, A-slave will be able to reconnect so we don't need to do anything with A-slave when A-master is down and up.

      Attached patch is based on tags/activemq-5.2.0 intended to address this, please review it and I will appreciate it can be applied to the trunk ( tags and trunk has the same previous file). Please let me know if you have any question regarding this. Thank you

      patches are at https://issues.apache.org/activemq/browse/AMQ-2070

      AMQ-2070 and AMQ-2071 are related because if you cannot use failover as uri in masterConnectorURI and you start the slave before master, you will have issue. failover takes care of that.

        Activity

        Jeff Turner made changes -
        Project Import Fri Nov 26 22:32:02 EST 2010 [ 1290828722158 ]
        Rob Davies made changes -
        Fix Version/s 5.3.0 [ 11914 ]
        Fix Version/s 5.4.0 [ 12110 ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Rob Davies made changes -
        Assignee Rob Davies [ rajdavies ]
        Rob Davies made changes -
        Fix Version/s 5.4.0 [ 12110 ]
        ying made changes -
        Description We have a use case of configuring two pair of master/slave as follows:
        A-master/A-slave
        B-master/B-slave

        and for client(producer/consumer) we use failover://(tcp://A-master, tcp://B-master) so A-slave and B-slave only is used to replicate the data their master receives. In this case, we want to use failover://(tcp://A-master) as masterConnectorURI for A-slave, similar to B. so that when A-master goes down and gets restarted, A-slave will be able to reconnect so we don't need to do anything with A-slave when A-master is down and up.

        Attached patch is based on tags/activemq-5.2.0 intended to address this, please review it and I will appreciate it can be applied to the trunk ( tags and trunk has the same previous file). Please let me know if you have any question regarding this. Thank you
        We have a use case of configuring two pair of master/slave as follows:
        A-master/A-slave
        B-master/B-slave

        and for client(producer/consumer) we use failover://(tcp://A-master, tcp://B-master) so A-slave and B-slave only is used to replicate the data their master receives. In this case, we want to use failover://(tcp://A-master) as masterConnectorURI for A-slave, similar to B. so that when A-master goes down and gets restarted, A-slave will be able to reconnect so we don't need to do anything with A-slave when A-master is down and up.

        Attached patch is based on tags/activemq-5.2.0 intended to address this, please review it and I will appreciate it can be applied to the trunk ( tags and trunk has the same previous file). Please let me know if you have any question regarding this. Thank you

        patches are at https://issues.apache.org/activemq/browse/AMQ-2070

        AMQ-2070 and AMQ-2071 are related because if you cannot use failover as uri in masterConnectorURI and you start the slave before master, you will have issue. failover takes care of that.
        ying made changes -
        Attachment patchActiveMQCore5.2.0-MasterFailover [ 17528 ]
        ying made changes -
        Attachment patchActiveMQCore5.2.0-MasterFailover [ 17528 ]
        ying made changes -
        Field Original Value New Value
        Component/s Connector [ 11270 ]
        Affects Version/s 5.2.0 [ 11841 ]
        ying created issue -

          People

          • Assignee:
            Rob Davies
            Reporter:
            ying
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development