Michele Bozzaotre created AMQCPP-611:
----------------------------------------

             Summary: Issue with backup option
                 Key: AMQCPP-611
                 URL: https://issues.apache.org/jira/browse/AMQCPP-611
             Project: ActiveMQ C++ Client
          Issue Type: Bug
          Components: Transports
    Affects Versions: 3.9.4
         Environment: Visual Studio 2015 (v140)
            Reporter: Michele Bozzaotre
            Assignee: Timothy Bish


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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to