]
RH Bugzilla Integration commented on ISPN-5879:
-----------------------------------------------
Matej Čimbora <mcimbora(a)redhat.com> changed the Status of [bug
XSite client failover - ensure TcpTransportFactory.trySwitchCluster
thread safety
---------------------------------------------------------------------------------
Key: ISPN-5879
URL:
https://issues.jboss.org/browse/ISPN-5879
Project: Infinispan
Issue Type: Bug
Components: Cross-Site Replication, Remote Protocols
Reporter: Matej Čimbora
Assignee: Galder Zamarreño
Priority: Critical
Fix For: 8.1.0.CR1
When reusing a HotRod client with several threads, site can be accidentally switched
multiple times by threads invoking TcpTransportFactory.trySwitchCluster. This occurs when
the threads attain 'maxRetries' limit at the same time, each of them being able to
invoke TcpTransportFactory..updateServers with different 'clusterAddresses'
parameter. This can lead to unpredictable result (e.g. switching back to failed cluster,
while the other one (backup) is up and running).