Commit graph

16 commits

Author SHA1 Message Date
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
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
Jonas Bonér
0449f85a86 Added implementation of the LEAVE command for a cluster node.
* Added implementation of the LEAVE command for a cluster node
* Changed the meaning of Member.isUnavailable to only DOWN and REMOVED
* Removed EXIT and UP as user commands
* Fixed Cluster.self to fall back to checking for itself in the gossip.overview.unreachable set.
* Added Leader action transitioning from LEAVING -> EXITING
* Improved comments

Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-01 16:49:50 +02:00
Patrik Nordwall
36385f981b Add missing barrier 2012-05-30 19:32:10 +02:00
Patrik Nordwall
d8530811c9 Minor cleanup 2012-05-28 15:45:21 +02:00
Patrik Nordwall
4786078565 Adjust cluster tests to not fail when excluded, see 2139 2012-05-27 19:46:42 +02:00
Patrik Nordwall
6993064cde Revert "Commented out the cluster tests because it's not possible to exclude them right now"
This reverts commit 2abe5308da.
2012-05-27 19:21:38 +02:00
Patrik Nordwall
2abe5308da Commented out the cluster tests because it's not possible to exclude them right now 2012-05-25 17:04:53 +02:00
Patrik Nordwall
17d54f1ae8 Tag as LongRunningTest 2012-05-25 15:45:13 +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
Patrik Nordwall
0ac7f967dd Change node naming. See 2111 2012-05-25 08:49:15 +02:00
Patrik Nordwall
0d51fb2ed5 Use ifNode for asserts. See #2111 2012-05-24 17:36:00 +02:00
Patrik Nordwall
db16b6c4b3 Port JoinTwoClustersSpec to MultiNodeSpec. See #2111 2012-05-24 17:09:05 +02:00
Patrik Nordwall
8d114f5da5 Move JoinTwoClustersSpec to multi-jvm. See #2111 2012-05-24 17:09:05 +02:00
Renamed from akka-cluster/src/test/scala/akka/cluster/JoinTwoClustersSpec.scala (Browse further)