Patrik Nordwall
fb04786072
Cleanup based on review comments, see #2201
2012-06-18 11:16:30 +02:00
Patrik Nordwall
e9a96afef8
Use FailureDetectorPuppet in ClusterSpec
2012-06-15 14:45:41 +02:00
Patrik Nordwall
de1ad30217
Fix false convergence when singleton cluster, see #2222
...
* All members must be in seen table for convergence
* Added extra debug logging due to convergence issues
* Enabled test of convergence for node joining singleton
cluster
2012-06-12 16:16:44 +02:00
Patrik Nordwall
a7d2be10eb
Merge branch 'master' into wip-2214-heartbeats-patriknw
...
Conflicts:
akka-cluster/src/main/scala/akka/cluster/AccrualFailureDetector.scala
akka-cluster/src/main/scala/akka/cluster/Cluster.scala
2012-06-11 22:27:08 +02:00
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
ec7177be74
Misc fixes after FailureDetectorPuppet and abstraction review
...
- Moved FailureDetectorPuppet to its own file in src/test.
- Removed 'phi' method from FailureDetector public API.
- Throwing exception instead of falling back to default if we can't load the custom FD.
- Removed add-connection method in FailureDetectorPuppet.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-11 10:06:53 +02:00
Jonas Bonér
a4499b06bb
Abstracted the FailureDetector into a interface trait and added controllable failure detector mock.
...
- Abstracted a FailureDetector trait.
- Added a FailureDetectorPuppet mock that can be user controllable
- Added option to define a custom failure detector
- Misc minor fixes
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-10 16:52:33 +02:00
Patrik Nordwall
9ca794dcc8
Totally skip running multi-jvm tests when long-running is excluded, see #2194
2012-06-07 13:32:42 +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
24212f14bc
Rename mySelf in MultiNodeSpec to myself
2012-05-28 15:29:00 +02:00
Jonas Bonér
5adaa1a271
Added the concept of PortPrefix in the clustering tests to avoid clashes in binding of server port when running the tests in parallel.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-05-04 15:03:23 +02:00
Jonas Bonér
1639028a78
Fixed problem in cluster tests with conflicting (unused) remote servers binding to the same port (2555).
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-05-03 15:50:45 +02:00
Jonas Bonér
7c03f8df6c
Renamed 'Node' to 'Cluster'.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-03-22 23:04:04 +01:00
Jonas Bonér
80da7b5e36
Muted exceptions sent to the TestEventListener in the ClusterSpec.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-03-16 00:17:43 +01:00
Jonas Bonér
50d11593c9
Added 'ClusterSpec' abstract class with 'awaitConvergence' method to get rid of most 'Thread.sleep()' calls. Updated all cluster specs. Now works more reliable.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-03-15 21:25:55 +01:00
Jonas Bonér
15addf2b87
Reorganized tests into matching subfolders.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-06-26 13:41:41 +02:00
Jonas Bonér
a0abd5ef57
Fixed problems with actor migration in cluster and added tests for explicit actor migration through API
2011-06-26 09:49:03 +02:00
Jonas Bonér
833238cd44
Added tests for storing, retrieving and removing custom configuration data in cluster storage.
...
Signed-off-by: Jonas Bonér <jonasremove@jonasboner.com>
2011-06-22 12:03:58 +02:00
Jonas Bonér
df8c4dac89
Added methods for Cluster.remove and Cluster.release that accepts ActorRef
2011-06-22 11:31:01 +02:00
Jonas Bonér
5d4f8b4bcb
Added test scenarios to cluster registry test suite.
...
Signed-off-by: Jonas Bonér <jonasremove@jonasboner.com>
2011-06-22 11:04:32 +02:00
Jonas Bonér
4d31751793
Fixed clustered management of actor serializer.
...
Various renames and refactorings.
Changed all internal usages of 'actorOf' to 'localActorOf'.
Signed-off-by: Jonas Bonér <jonasremove@jonasboner.com>
2011-06-22 09:59:00 +02:00
Jonas Bonér
a0fcc62d27
Added ChangeListener.nodeDisconnected test
...
Signed-off-by: Jonas Bonér <jonasremove@jonasboner.com>
2011-06-17 16:48:52 +02:00
Jonas Bonér
b93755080d
Added test for Cluster ChangeListener: NodeConnected, more to come. Also fixed bug in Cluster
2011-06-17 16:07:41 +02:00
Jonas Bonér
bf0515b8e5
Fixed remaining issues in pluggable serializers (cluster impl)
2011-06-14 19:35:18 +02:00
Jonas Bonér
f0be165a07
Refactored and changed boot of Cluster and ClusterDeployer.
...
Fixed problems with ClusterDeployerSpec and ClusterMultiJvmSpec.
Removed all akka-remote tests and samples (needs to be rewritten later).
Added Actor.cluster member field.
Removed Actor.remote member field.
Signed-off-by: Jonas Bonér <jonasremove@jonasboner.com>
2011-05-20 14:36:26 +02:00
Jonas Bonér
a7311c83e6
Added Scalariform sbt plugin which formats code on each compile. Also checking in reformatted code
2011-05-18 17:25:30 +02:00
Jonas Bonér
1396e2d571
Commented away failing remoting tests
2011-05-16 13:29:59 +02:00
Jonas Bonér
6c6089e081
Misc fixes everywhere; deployment, serialization etc.
2011-05-16 09:47:23 +02:00
Jonas Bonér
517f9a212b
Massive refactorings in akka-cluster. Also added ClusterDeployer that manages deployment data in ZooKeeper
2011-04-29 15:47:56 +02:00
Jonas Bonér
2b1332e220
fixed compilation problems in akka-cluster
2011-04-28 20:12:37 +02:00