Uploaded image for project: 'ActiveMQ C++ Client'
  1. ActiveMQ C++ Client
  2. AMQCPP-611

Issue with backup option

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.9.4
    • None
    • Transports
    • Visual Studio 2015 (v140)

    Description

      I'm running a client connecting to a cluster of two brokers, with backup option enabled.

      Scenario 1:

      The client URI is:
      failover:(tcp://host1:61616,tcp://host2:61616)?randomize=false&backup=true
      When both hosts are active, the client connects to host1 at the startup and works fine. Once I unplug host1 from the network, the client is able to switch very fast to host2 as expected and continues to work fine. Now, if I immediately restore the network connection on host1, the client remains connected to host2, but it starts to loose entire sequences of messages from the broker.

      Scenario 2

      The client URI is:
      failover:(tcp://local:61616,tcp://remote:61616)?randomize=false&priorityBackup=true
      The clients starts and establishes connection to local host.
      If I unplug local host from the network, the client is able to switch to the remote host very quickly, as expected. Now, if I immediately restore the network connection on local host, the client enters a loop where it switches very fast the connection between the two hosts, with a frequency of about half a second. During this swing, the client is still able to receive all the messages. Once you unplug one of the hosts, the client stops to switch and stayes connected to the other one.

      Please, let me know if you need more details.
      Thanks

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            michele.bozzaotre@ansaldo-sts.com Michele Bozzaotre
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: