[JBoss JIRA] (ISPN-5879) XSite client failover - ensure TcpTransportFactory.trySwitchCluster thread safety
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-5879?page=com.atlassian.jira.plugin.... ]
Work on ISPN-5879 started by Galder Zamarreño.
----------------------------------------------
> 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.Beta2
>
>
> 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).
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 5 months
[JBoss JIRA] (ISPN-5879) XSite client failover - ensure TcpTransportFactory.trySwitchCluster thread safety
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-5879?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño updated ISPN-5879:
-----------------------------------
Fix Version/s: 8.1.0.Beta2
> 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.Beta2
>
>
> 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).
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 5 months
[JBoss JIRA] (ISPN-5895) RebalancePolicyJmxTest.testJoinAndLeaveWithRebalanceSuspendedAwaitingInitialTransfer random failures
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-5895?page=com.atlassian.jira.plugin.... ]
Dan Berindei reopened ISPN-5895:
--------------------------------
I missed another line where the test was assuming the rebalance to take longer.
> RebalancePolicyJmxTest.testJoinAndLeaveWithRebalanceSuspendedAwaitingInitialTransfer random failures
> ----------------------------------------------------------------------------------------------------
>
> Key: ISPN-5895
> URL: https://issues.jboss.org/browse/ISPN-5895
> Project: Infinispan
> Issue Type: Bug
> Components: Core, Test Suite - Core
> Affects Versions: 8.1.0.Alpha2
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Blocker
> Labels: testsuite_stability
> Fix For: 8.1.0.Beta1
>
>
> The test sometimes fails because the rebalance finishes too quickly after it is enabled.
> {noformat}
> 17:22:35,605 DEBUG (testng-RebalancePolicyJmxTest:[]) [RebalancePolicyJmxTest] Rebalancing with nodes NodeI-11719 NodeJ-4803 NodeK-58683 NodeL-10033
> 17:22:35,621 INFO (remote-thread-NodeI-p45498-t6:[]) [CLUSTER] ISPN000310: Starting cluster-wide rebalance for cache ___defaultcache, topology CacheTopology{id=3, rebalanceId=2, currentCH=DefaultConsistentHash{ns=60, owners = (2)[NodeI-11719: 30+30, NodeJ-4803: 30+30]}, pendingCH=DefaultConsistentHash{ns=60, owners = (4)[NodeI-11719: 15+15, NodeJ-4803: 15+15, NodeK-58683: 15+15, NodeL-10033: 15+15]}, unionCH=null, actualMembers=[NodeI-11719, NodeJ-4803, NodeK-58683, NodeL-10033]}
> 17:22:35,643 INFO (remote-thread-NodeI-p45498-t6:[]) [CLUSTER] ISPN000336: Finished cluster-wide rebalance for cache ___defaultcache, topology id = 3
> 17:22:37,630 ERROR (testng-RebalancePolicyJmxTest:[]) [UnitTestTestNGListener] Test testJoinAndLeaveWithRebalanceSuspended(org.infinispan.statetransfer.RebalancePolicyJmxTest) failed.
> java.lang.AssertionError: expected:<IN_PROGRESS> but was:<COMPLETE>
> at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:101) ~[testng-6.8.8.jar:?]
> at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:108) ~[testng-6.8.8.jar:?]
> at org.infinispan.statetransfer.RebalancePolicyJmxTest.doTest(RebalancePolicyJmxTest.java:111) ~[test-classes/:?]
> at org.infinispan.statetransfer.RebalancePolicyJmxTest.testJoinAndLeaveWithRebalanceSuspended(RebalancePolicyJmxTest.java:36) ~[test-classes/:?]
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 5 months
[JBoss JIRA] (ISPN-5952) Update server CLI commands to support new layout
by Tristan Tarrant (JIRA)
Tristan Tarrant created ISPN-5952:
-------------------------------------
Summary: Update server CLI commands to support new layout
Key: ISPN-5952
URL: https://issues.jboss.org/browse/ISPN-5952
Project: Infinispan
Issue Type: Bug
Reporter: Tristan Tarrant
Assignee: Tristan Tarrant
The layout of subsystems has changed in Infinispan 8 and the server CLI container and cache commands don't work anymore. Also we should support domain mode.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 5 months