Jonas Bonér
e7cf92e72a
Merge pull request #506 from akka/wip-2161-test-leave-the-cluster-gracefully-jboner
...
Added implementation of the LEAVE command for a cluster node plus misc tests
2012-06-04 01:39:22 -07:00
Jonas Bonér
8297e0132b
Added comment to explain the increase in leader action frequency.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-04 10:38:10 +02:00
Jonas Bonér
beac5c5cff
Fixed typo in config
2012-06-04 10:12:31 +02:00
Jonas Bonér
505e0717b9
Made the timeout for test dilated
2012-06-01 17:25:27 +02:00
Jonas Bonér
a3d48339ca
Added test for testing cluster node transitioning from UP -> LEAVING -> EXITING -> REMOVED.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-01 16:51:18 +02:00
Jonas Bonér
3ac39cce95
Added test for testing cluster node transitioning from UP -> LEAVING -> EXITING.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-01 16:50:56 +02:00
Jonas Bonér
de8bb7d96f
Added test for testing cluster node transitioning from UP -> LEAVING.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-01 16:50:34 +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
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
ab1969e93a
Debug log since we had one hard to reproduce failure on this
2012-06-01 10:45:34 +02:00
Patrik Nordwall
af924384b6
Shutdown correct node
2012-06-01 10:44:58 +02:00
Patrik Nordwall
85c263e077
Add missing long-running tag
2012-05-31 22:17:34 +02:00
Patrik Nordwall
13a93dfb50
Fix regression IllegalStateException: Can't find this Member, see #2117
...
* Gossiping to myself caused the failure detector to mark myself as unreachable
* Don't heartbeat for myself failure detector
2012-05-31 17:36:59 +02:00
Patrik Nordwall
9d1cbdc601
Singleton cluster convergence, see #2117
2012-05-31 14:48:12 +02:00
Patrik Nordwall
36385f981b
Add missing barrier
2012-05-30 19:32:10 +02:00
Patrik Nordwall
e469561543
Minor corrections and cleanup
2012-05-30 17:17:09 +02:00
Patrik Nordwall
44b6764a40
Reduce sleep and use awaitCond for the failure case, see #2110
2012-05-29 08:46:00 +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
bffb14b022
Port GossipingAccrualFailureDetectorSpec to MultiNodeSpec, see #2110
2012-05-28 14:57:46 +02:00
Patrik Nordwall
478cd96639
Move GossipingAccrualFailureDetectorSpec to multi-jvm, see #2110
2012-05-28 14:57:46 +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
patriknw
12bd97b66d
Merge pull request #483 from akka/wip-2113-LeaderElectionSpec-patriknw
...
Port LeaderElectionSpec to MultiNodeSpec. See #2113
2012-05-28 04:56:29 -07:00
Patrik Nordwall
59dd754819
Use only the hard exit LeaderElectionSpec, see #2113
2012-05-28 13:55:22 +02:00
Jonas Bonér
e533845a01
Renamed the LeaderDowningSpec to LeaderDowningNodeThatIsUnreachableSpec (same as the class)
2012-05-28 12:46:55 +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
a66ababd27
Decreased failure detector threshold to shorten failure detection time.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-05-28 11:33:14 +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
Patrik Nordwall
e3eec7e344
LeaderElectionSpec with hard exits. See #2113 and #2138
2012-05-28 11:05:02 +02:00
Jonas Bonér
4ec49f6ac1
Fixed indeterministic ordering bug in test
2012-05-27 21:55:33 +02:00
Jonas Bonér
5080624390
Incorporated feedback - switched to MultiNodeClusterSpec etc.
2012-05-27 21:22:30 +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
a44bd10fc3
Tag as LongRunningTest. See 2113
2012-05-27 19:15:31 +02:00
Patrik Nordwall
597271052f
Port LeaderElectionSpec to MultiNodeSpec. See #2113
2012-05-27 10:00:23 +02:00
Patrik Nordwall
57313cc9e0
Move LeaderElectionSpec to multi-jvm. See #2113
2012-05-27 10:00:23 +02:00
Jonas Bonér
ea99a1f315
Simplified config and removed old too-long timeout.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-05-25 17:43:03 +02:00
Jonas Bonér
5e6f856743
Merge branch 'master' into wip-2109-port-cluster-test-jboner
2012-05-25 17:31:03 +02:00
Jonas Bonér
d99b1cd7f0
Rewritten old in-memory ClientDowningSpec into multi-node specs.
...
Split it up into two different specs:
- ClientDowningNodeThatIsUnreachableMultiJvmSpec
- ClientDowningNodeThatIsUpMultiJvmSpec
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-05-25 17:29:29 +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
3aba8dc424
Assert with sorted member addresses, since ports are random
2012-05-25 10:00:30 +02:00
patriknw
8eb87e4e28
Merge pull request #474 from akka/wip-2111-JoinTwoClusterSpec-patriknw
...
Port JoinTwoClustersSpec to MultiNodeSpec. See #2111
2012-05-25 00:01:43 -07:00
patriknw
8a454358d5
Merge pull request #473 from akka/wip-2114-MembershipChangeListenerSpec-patriknw
...
Port MembershipChangeListenerSpec to MultiNodeSpec. See #2114
2012-05-25 00:01:20 -07:00
Patrik Nordwall
8d1dea1750
Change node naming. See 2114
2012-05-25 08:59:13 +02:00
Patrik Nordwall
ed31c1738f
Change node naming. See 2115
2012-05-25 08:55:02 +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