Commit graph

12466 commits

Author SHA1 Message Date
Patrik Nordwall
ae3b4ab8b7 Test cluster router deployment config 2012-08-30 13:41:01 +02:00
Patrik Nordwall
228525a458 Describe API changes for custom routers in migration guide 2012-08-30 13:32:13 +02:00
Björn Antonsson
1ee7a84178 Make sure that compile in test will compile MultiJvm test as well. See #2316 2012-08-30 13:16:36 +02:00
Patrik Nordwall
fd847535d4 Reduce exposure of ActorContext to RouteeProvider
* Introduced RouterContext which is a subset of
  ActorContext that makes sense for RouteeProvider
  to use.
* It's not possible (without major rethinking) to
  create routees by sending message to the Router
  actor because we rely on immediate return of ActorRef
2012-08-30 13:12:23 +02:00
Patrik Nordwall
39a71e50d6 Fix compilation errro in docs code 2012-08-30 12:48:11 +02:00
Viktor Klang
f9a58ea430 Reintroduced preRestart override for Stash and added Stash-changes to the migration docs 2012-08-30 12:18:51 +02:00
Björn Antonsson
217a9c2cf9 Changing Doc from Akkas futures to Scalas futures and cleanup of examples. See #2314 2012-08-30 12:18:01 +02:00
Patrik Nordwall
e422d188c2 Use the router actor as cluster listener, see #2103
* Removed need for extra actor that subscribes to cluster
  events
* ClusterRouterActor is the router actor and aslo subscribes
* Less scary initialization, and safe calls to createRoutees
* Intercept ClusterDomainEvent to route them to ClusterRouterActor
  instead of to the routees
2012-08-30 12:13:50 +02:00
Viktor Klang
3c3c84d4d8 Adding migration notes around the removal of Props(ActorContext => Actor.Receive) 2012-08-30 12:03:09 +02:00
Viktor Klang
e462784c09 #2450 - Fixing expectMsgAllConformingOf and expectMsgAllClassOf + adding more tests 2012-08-30 11:59:56 +02:00
Patrik Nordwall
ba5df98740 Unregister routees living on removed node, see #2103 2012-08-30 10:54:58 +02:00
Patrik Nordwall
b22a092932 Support programatic declaration of cluster router, see #2103
* Ordinary withRouther withDeploy is TOO ugly for this
* Implicit conversion adds withClusterRouter to Props
  for Scala API
* Helper method in ClusterRouterPropsDecorator for Java API
2012-08-30 10:06:12 +02:00
Jonas Bonér
042f9f8206 Fixed typo 2012-08-30 10:13:27 +03:00
Patrik Nordwall
695ce49727 Deploy to new members in cluster, see #2103
* Config max-nr-of-instances-per-node
* selectDeploymentTarget that takes max-nr-of-instances-per-node
  and nr-of-instances into account
* Deploy when new member added or removed
* Moved routeeProps to RouteeProvider constructor, needed for
  this feature, but also simplifies createRoute, createRoutee,
  and resize, since routeeProps doesn't have to be passed around.
2012-08-29 19:33:19 +02:00
Viktor Klang
4f135ff6da #2452 - Fixing so that rootGuardian actorFor deadLetters returns deadLetters (which is where it logically lives) 2012-08-29 18:53:55 +02:00
Viktor Klang
20881c777d #2396 - Removing the Props.apply(ActorContext => Actor.Receive) method as it is superceded by the ActorDSL 2012-08-29 18:00:14 +02:00
Viktor Klang
c0adc6fc22 #2451 - Changing so that Stash overrides postStop instead so that stashed messages are reenqueued to mailbox on preRestart calling postStop and on stop, ending up in dead letters as they should. 2012-08-29 17:58:59 +02:00
Björn Harrtell
15b225b7a6 Add warning block 2012-08-29 17:11:31 +02:00
Patrik Nordwall
305dceb102 Rename local val _routee, see #2442 2012-08-29 14:59:33 +02:00
Patrik Nordwall
bf20ae5157 Better methods in RouteeProvider
* createRoutees only for new nrOfInstances
* createRoutees also registers
* New registerRouteesFor for path lookup
* removeRoutees to gracefully unregister and stop routee
2012-08-29 14:56:51 +02:00
Viktor Klang (√)
d58842f0b7 Merge pull request #655 from amir343/master
Updated to Akka HEAD on master
2012-08-29 05:47:42 -07:00
Amir Moulavi
394c4eb3f7 Merge https://github.com/akka/akka 2012-08-29 13:33:56 +02:00
Björn Antonsson
a48dca8e1e Allow project scala version to be set with a property. See #2429 2012-08-29 12:39:17 +02:00
Patrik Nordwall
fa0ec4bd01 Avoid ArithmeticException: / by zero in routers, see #2443
* Route to deadletters when no routees
2012-08-29 11:48:28 +02:00
Patrik Nordwall
f4cc8f8649 Make it more intuitive for tests using real Cluster(system) extension, see #2103
* We will write more tests that rely on real Cluster(system) extension,
  such as ClusterRoundRobinRoutedActorSpec
* When not using FailureDetectorStrategy or overriding seed nodes
  MultiNodeClusterSpec will use the real Cluster(system) extension
  instead of a new Cluster instance with additional test facilities
2012-08-28 16:38:05 +02:00
Patrik Nordwall
f1626ca1d3 Small refactoring to improve resize api 2012-08-28 15:36:40 +02:00
Patrik Nordwall
417bdc2dfb Prototype of cluster aware routers, see #2103
* Several FIXME that needs to be discussed
* ClusterRouterConfig created via ClusterActorRefProvider
2012-08-28 11:54:52 +02:00
Patrik Nordwall
a237058b64 First part of usage doc for cluster, see #1916
* Sample app, akka-sample-cluster
* Preparing Your Project for Clustering
* A Simple Cluster Example
* Automatic vs. Manual Joining
* Automatic vs. Manual Downing
* Configuration
2012-08-27 17:15:11 +02:00
Patrik Nordwall
f6079de381 Merge pull request #645 from akka/wip-2202-fine-grained-events-patriknw
Fine grained events, see #2202
2012-08-27 07:57:37 -07:00
Patrik Nordwall
fe28f29b38 Add comment about member replacement in Set, see #2202 2012-08-27 16:55:50 +02:00
Patrik Nordwall
4a06719722 Merge branch 'master' into wip-2202-fine-grained-events-patriknw
Conflicts:
	akka-cluster/src/multi-jvm/scala/akka/cluster/TransitionSpec.scala
2012-08-27 16:52:06 +02:00
Patrik Nordwall
4ebe5079bd Merge pull request #647 from akka/wip-2423-fix-TransitionSpec-patriknw
Fix failing TransitionSpec, see #2423
2012-08-27 07:03:30 -07:00
Patrik Nordwall
9f389a7950 Resizer specified in code combined with other router config, see #2433
* Use withFallback to use Resizer specified in code if not configured
* Use withFallback in RemoteRouterConfig also
* Fix bug of child name in RemoteRouteeProvider
2012-08-27 14:51:51 +02:00
Amir Moulavi
d0703d1361 Merge branch 'master' of github.com:amir343/akka 2012-08-27 09:28:45 +02:00
Amir Moulavi
a281e627a9 A typo is corrected. It should be 'affect' instead of 'effect' 2012-08-27 09:28:08 +02:00
Björn Harrtell
d65ed2a007 Add warning about passing mutable state into the constructor of an Actor
I was bitten by this when I created actors as a reaction in recieve, passing sender as parameter to the new Actor.
2012-08-25 13:05:27 +03:00
Roland
66d071ab84 adapt release script to maven publishing 2012-08-22 22:04:46 +02:00
Josh Suereth
1be260c283 Publish-to now accepts jvm property publish.maven.central to rewire resolver to be aven central. 2012-08-22 12:55:18 -04:00
Roland
04159dc931 fix scalaBinaryVersion for sbt plugin 2012-08-22 18:36:13 +02:00
Roland
43170ff168 redo ChildTerminated() processing, see #2391"
the previous patch of including the UID in the Terminated message did
suffer from the system vs. normal message ordering problem, hence I
reverted the previous fix and replaced it by sending a NullMessage after
ChildTerminated, exactly like in the Supervise case.
2012-08-22 17:31:01 +02:00
Roland
d110836629 make all tests pass again with 2.10.0-M7 2012-08-22 17:30:46 +02:00
Roland
531e3fc5a0 disable one of Dataflow tests which depends on SI-6262, to be re-enabled later 2012-08-22 11:10:37 +02:00
Roland
f41f706ce5 adapt to different error messages, fix one case of Props() 2012-08-22 11:10:37 +02:00
Roland
a15900a591 port onto SBT-0.12 branch 2012-08-22 11:10:36 +02:00
Patrik Nordwall
8fe8fc5512 Remove cluster-sample/README, was added prematurely 2012-08-21 18:16:04 +02:00
Patrik Nordwall
1ad701c330 Fix failing TransitionSpec, see #2423
* The failure is due to the now eventually updated view.
* Must use await asserts.
2012-08-21 17:51:49 +02:00
Amir Moulavi
c68ab31422 A typo in general doc: class name is misspelled 2012-08-21 16:04:15 +02:00
Patrik Nordwall
20a038fdfd Fine grained events, see #2202
* Defined the domain events in ClusterEvent.scala file
* Produce events from diff  and publish publish to event bus
  from separate actor, ClusterDomainEventPublisher
* Adjustments of tests
2012-08-21 15:35:38 +02:00
Roland Kuhn
6389e1097b Merge pull request #644 from akka/wip-2418-Supervise-vs-Failed-∂π
add NullMessage after Supervise to prevent race, see #2418
2012-08-21 06:07:59 -07:00
Roland Kuhn
c38f473cb2 Merge pull request #632 from akka/wip-UnstartedCell-push-timeout-∂π
Wip unstarted cell push timeout ∂π
2012-08-21 06:07:14 -07:00