Commit graph

71 commits

Author SHA1 Message Date
Patrik Nordwall
e2551494c4 Use Use separate heartbeats for FailureDetector, see #2214
* Send Heartbeat message to all members at regular interval
* Removed the need to gossip to myself
2012-06-11 15:00:44 +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
Patrik Nordwall
56735477b8 initialParticipants default as roles.size in cluster tests 2012-06-08 09:23:36 +02:00
Patrik Nordwall
bc289df018 Unit tests of Cluster, see 2163
* ClusterSpec
- Test gossiping rules for deputies and unreachable
- Fix strange/wrong probabilites for gossip to unreachable and deputy nodes
- Fix lost order of Members when using map (without .toSeq) on the members SortedSet

* MemberSpec
- Test equals, hashCode

* GossipSpec
- Test member merge by status prio
- Fix bug in member merge (groupBy was wrong)
2012-06-07 08:29:07 +02:00
Patrik Nordwall
ac98dddfe8 ScalaDoc of awaitClusterUp 2012-06-05 15:53:30 +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
Jonas Bonér
4acee03195 Merge branch 'master' into wip-2162-membership-change-listener-spec-jboner
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-04 23:32:27 +02:00
Jonas Bonér
391fed6594 Misc changes, fixes and improvements after review.
- Renamed all 'frequency' to 'interval'
- Split up NodeJoinAndUpSpec and into NodeJoinSpec and NodeUpSpec.
- Split up MembershipChangeListenerJoinAndUpSpec and into MembershipChangeListenerJoinSpec and MembershipChangeListenerUpSpec.
- Added utility method 'startClusterNode()'
- Fixed race in register listener and telling node to leave
- Removed 'after' blocks
- Cleaned up unused code
- Improved comments

Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-04 23:21:28 +02:00
patriknw
ce332a9f96 Merge pull request #505 from akka/wip-2164-convergence-patriknw
Test gossip convergence, see #2164
2012-06-04 06:16:34 -07:00
Patrik Nordwall
33f14f9bf6 Test gossip convergence, see #2164 2012-06-01 15:15:53 +02:00
Patrik Nordwall
4dbf4a70b3 Test leader member states, see 2157
* The only allowed member states for a leader are up or leaving
* Added above check in assertLeader so that we always verify that
* More usage of assertLeader in the tests
2012-06-01 11:39:51 +02:00
Patrik Nordwall
e469561543 Minor corrections and cleanup 2012-05-30 17:17:09 +02:00
Patrik Nordwall
d8530811c9 Minor cleanup 2012-05-28 15:45:21 +02:00
Patrik Nordwall
24212f14bc Rename mySelf in MultiNodeSpec to myself 2012-05-28 15:29:00 +02:00
Patrik Nordwall
1b20760583 Merge branch 'master' into wip-2112-leader-downing-spec-jboner
Conflicts:
	akka-cluster/src/multi-jvm/scala/akka/cluster/MultiNodeClusterSpec.scala
2012-05-28 14:39:36 +02:00
Patrik Nordwall
c63a28f39a Merge branch 'master' into wip-2109-port-cluster-test-jboner
Conflicts:
	akka-cluster/src/multi-jvm/scala/akka/cluster/MultiNodeClusterSpec.scala
2012-05-28 14:15:44 +02:00
Jonas Bonér
faed944590 Fixed minor check: checking on 'address' equality instead of 'port' 2012-05-28 11:54:10 +02:00
Jonas Bonér
203e2cb13c Added LeaderDowning spec for testing that the leader automatically is downing an unreachable node. Fixes 2112.
- tests downing a node at the end of the node ring
- tests downing a node in the middle of the node ring
- added some more utility stuff to the MultiNodeClusterSpec

Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-05-28 11:06:02 +02:00
Jonas Bonér
5080624390 Incorporated feedback - switched to MultiNodeClusterSpec etc. 2012-05-27 21:22:30 +02:00
Patrik Nordwall
597271052f Port LeaderElectionSpec to MultiNodeSpec. See #2113 2012-05-27 10:00:23 +02:00
Patrik Nordwall
829783f359 Remove port awareness in asserts of leader and members. See #2133
* Extracted common parts to MultiNodeClusterSpec
2012-05-25 12:10:37 +02:00