Commit graph

155 commits

Author SHA1 Message Date
Jonas Bonér
cb0cfac6c7 Merged with master 2012-06-14 16:13:53 +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
Jonas Bonér
45b2484f62 Implemented/Fixed Cluster.remove() and state transition from LEAVING -> REMOVED.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-08 11:51:34 +02:00
Patrik Nordwall
6a380550f9 Notify MembershipChangeListeners when 'members' change 2012-06-08 08:59:05 +02:00
Patrik Nordwall
fcd08ed2b9 Test normal healthy cluster, see #2195
* Fix that membership listeners should only notified when something changed
2012-06-07 17:45:03 +02:00
Patrik Nordwall
dbac17621f Node that joins again should be ignored, see #2184 2012-06-07 15:45:10 +02:00
Patrik Nordwall
921d900f99 Change protected to private[akka], see #2163 2012-06-07 12:03:34 +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
Viktor Klang
4d3e9f19fe Fixing ScalaDoc messup 2012-06-05 18:19:46 +02:00
Patrik Nordwall
5ccfb2cfee Remove cluster settings vals 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
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
33f14f9bf6 Test gossip convergence, see #2164 2012-06-01 15:15:53 +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
dfcdbc5221 Boy scouting 2012-05-31 14:48:12 +02:00
Patrik Nordwall
cd8e0ab3b1 Change to ThreadLocalRandom, see #2123 2012-05-30 17:16:46 +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
c16bd74073 Added more logging to Cluster's who to gossip selection process.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-05-25 17:27:24 +02:00
Patrik Nordwall
a2cd84e047 Sort on host and port only. See #2133 2012-05-25 14:53:44 +02:00
Patrik Nordwall
34915063cd Correct sort. See #2133 2012-05-25 12:51:37 +02:00
Patrik Nordwall
b569869b61 Use better sort order of members. See #2133 2012-05-25 12:10:17 +02:00
Viktor Klang
95db4bfd37 Moving out ConfigurationException from akka.config to akka 2012-05-16 17:04:13 +02:00
Jonas Bonér
5d575a18d7 Removed 'ping' command. Replaced checking with 'is-available'. Added a bit of info to README for distribution.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-04-23 14:13:05 +02:00
Jonas Bonér
846820447e Changed output of the 'cluster-status' command to be nicely formatted. Added error handling to JMX registration. Added more doc to 'akka-cluster' script.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-04-16 16:58:19 +02:00
Jonas Bonér
a400b90d87 Cleaned up cluster node admin script and improved functionality in JMX API.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-04-16 11:23:03 +02:00
Jonas Bonér
ecc949441a Initial commit of 'akka-cluster' CLI tool working together with the new Cluster JMX API
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-04-14 20:06:03 +02:00
Jonas Bonér
e500548494 Renamed methods in public Cluster API, plus changed semantics of Cluster.join (was wrong before).
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-04-12 22:50:50 +02:00
Jonas Bonér
19cb08cbeb Renamed Node.scala to Cluster.scala 2012-04-12 12:25:39 +02:00
Jonas Bonér
0fa184560c Moved Gossiper, FailureDetector and VectorClock (with tests) to the akka-cluster module. Deleted all old unused cluster code (ZooKeeper-based stuff).
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-01-31 13:34:06 +01:00
Viktor Klang
149fbea5a7 Updating Copyright as per #1660 2012-01-19 18:21:06 +01:00
Viktor Klang
bf01045779 Merged with current master 2011-12-13 10:18:15 +01:00
Viktor Klang
b32cbbc764 Renaming Block to Await, renaming sync to result, renaming on to ready, Await.ready and Await.result looks and reads well 2011-12-12 22:50:08 +01:00
Viktor Klang
2673a9c047 Removing Future.as[] and commenting out 2 Java Specs because the compiler can't find them? 2011-12-11 20:12:55 +01:00
Jonas Bonér
4d649c3903 Removed all @author tags for Jonas Bonér since it has lost its meaning.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-09 18:44:59 +01:00
Viktor Klang
95791ce4c5 #1424 - RemoteSupport is now instantiated from the config, so now anyone can write their own Akka transport layer for remote actors 2011-12-02 18:08:38 +01:00
Peter Vlugter
7b8a865c00 Rename address to name or path where appropriate
- TypedActor: address -> name
- TestActorRef, TestFSMRef: address -> name
- Props.randomAddress -> randomName
- Remote protocol: address -> name
- Address.validate moved to ActorPath
2011-11-10 12:19:07 +01:00
Viktor Klang
3021baa3e4 Fixing the BuilderParents generated by protobuf with FQN and fixing @returns => @return 2011-11-08 19:10:07 +01:00
Viktor Klang
1b730b5c82 Removing Channel(s), tryTell etc, everything compiles but all tests are semibroken 2011-10-31 16:09:51 +01:00
Jonas Bonér
303d34692d Merge branch 'master' of github.com:jboner/akka
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-10-20 15:11:34 +02:00
Jonas Bonér
c8215dfd54 Added Gossip messages and management to remote protocol. Various refactorings and improvements of remoting layer.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-10-19 14:45:24 +02:00
Viktor Klang
01efcd7b50 Removing ActorCell.ref (use ActorCell.self instead), introducing Props.randomAddress which will use the toString of the uuid of the actor ref as address, bypassing deployer for actors with 'randomAddress' since it isn't possible to know what the address will be anyway, removing Address.validate since it serves no useful purpose, removing guard.withGuard in MessageDispatcher in favor of the less costly lock try-finally unlock strategy 2011-10-18 19:14:42 +02:00
Viktor Klang
474787a81d Renaming createActor to actorOf 2011-10-18 17:56:23 +02:00
Viktor Klang
54338b5227 Adding EventBus API and changing the signature of DeathWatch to use the new EventBus API, adding some rudimentary test fixtures to EventBus 2011-10-11 17:41:25 +02:00
Viktor Klang
69768dbc96 Removing the old Supervision-DSL and replacing it with a temporary one 2011-09-30 14:52:07 +02:00
Viktor Klang
a12ee36151 Merge commit 2011-09-29 13:11:35 +02:00
Jonas Bonér
0957e41d19 Renamed 'replication-factor' config element to 'nr-of-instances' and 'ReplicationFactor' case class to 'NrOfInstances'.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-09-28 19:42:12 +02:00