Patrik Nordwall
4e2d7b0495
Move Cluster query methods to ClusterReadView, see #2202
...
* Better separation of concerns
* Internal API (could be made public if requested)
2012-08-16 18:28:01 +02:00
Patrik Nordwall
06f81f4373
Improve publish of domain events, see #2202
...
* Gossip is not exposed in user api
* Better and more events
* Snapshot event sent to new subscriber
* Updated tests
* Periodic publish only for internal stats
2012-08-15 16:47:34 +02:00
Viktor Klang
1114da2198
Importing language features used by akka-cluster and akka-remote-tests
2012-07-26 14:47:21 +02:00
Roland
b2ce64fb6f
fix up multi-jvm tests
2012-07-25 18:02:45 +02:00
Viktor Klang
54a3a44bf8
#2292 - Removing akka.util.Duration etc and replace it with scala.concurrent.util.Duration
2012-06-29 13:33:20 +02:00
Patrik Nordwall
ec9abb12df
Merge branch 'master' into wip-2201-cache-node-lookup-patriknw
...
Conflicts:
akka-cluster/src/multi-jvm/scala/akka/cluster/ConvergenceSpec.scala
akka-cluster/src/multi-jvm/scala/akka/cluster/LeaderElectionSpec.scala
akka-cluster/src/multi-jvm/scala/akka/cluster/MembershipChangeListenerExitingSpec.scala
akka-cluster/src/multi-jvm/scala/akka/cluster/MembershipChangeListenerJoinSpec.scala
akka-cluster/src/multi-jvm/scala/akka/cluster/MembershipChangeListenerLeavingSpec.scala
akka-cluster/src/multi-jvm/scala/akka/cluster/MembershipChangeListenerUpSpec.scala
akka-cluster/src/multi-jvm/scala/akka/cluster/NodeLeavingAndExitingAndBeingRemovedSpec.scala
akka-cluster/src/multi-jvm/scala/akka/cluster/TransitionSpec.scala
2012-06-20 09:40:16 +02:00
Björn Antonsson
4a56f195fc
Merge branch 'master' into wip-2218-test-conductor-barrier-timeouts
2012-06-19 15:11:50 +02:00
Patrik Nordwall
12e90a98dc
Remove address vals in tests, fix race in TransitionSpec, see #2201
2012-06-18 13:24:46 +02:00
Björn Antonsson
fd42c3d49a
Allow barrier timeouts to be shortened and other review fixes
2012-06-15 14:39:47 +02:00
Patrik Nordwall
f7a01505ba
Correction of gossip merge when joining, see #2204
...
The problem:
* Node that is Up joins a cluster and becomes Joining in that cluster
* The joining node receives gossip, which results in conflict,
merge results in Up
* It became Up in the new cluster without passing the ordinary leader
action to move it to Up
The solution:
* Change priority order of Up and Joining so that Joining is used when
merging
2012-06-15 13:35:52 +02:00
Björn Antonsson
5714d8327f
Make multi node tests use the within() aware barrier
2012-06-13 14:55:33 +02:00
Jonas Bonér
2dcceb58ce
Split up all tests that are related to failure detection into two versions: Accrual FD and FD Puppet. Also moved all tests that are not failure detection tests to use FD Puppet.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-11 16:48:19 +02:00
Jonas Bonér
b65cf5c2ec
Created FailureDetectorStrategy with two implementations: FailureDetectorPuppetStrategy and AccrualFailureDetectorStrategy.
...
- Created FailureDetectorStrategy base trait.
- Created FailureDetectorPuppetStrategy.
- Created AccrualFailureDetectorStrategy.
- Created two versions of LeaderDowningNodeThatIsUnreachableMultiJvmSpec
- LeaderDowningNodeThatIsUnreachableWithFailureDetectorPuppet
- LeaderDowningNodeThatIsUnreachableWithAccrualFailureDetector
- Added AccrualFailureDetectorStrategy to all the remaining tests - will be split up into two versions shortly.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-11 14:32:17 +02:00
Jonas Bonér
e6ee3e2a95
Ignoring ConvergenceSpec until fixed.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-10 16:50:04 +02:00
Patrik Nordwall
56735477b8
initialParticipants default as roles.size in cluster tests
2012-06-08 09:23:36 +02:00
Patrik Nordwall
f02793ebd6
Refactor cluster startup join in tests and fix barrier race
...
* Refactored common code to MultiNodeClusterSpec.awaitClusterUp
* Fixed some race conditions of barriers
2012-06-05 14:17:07 +02:00
Patrik Nordwall
b1c507f3b9
Shutdown does removeNode, see #2137
2012-06-04 14:56:16 +02:00
Patrik Nordwall
33f14f9bf6
Test gossip convergence, see #2164
2012-06-01 15:15:53 +02:00