Commit graph

338 commits

Author SHA1 Message Date
Roland
173ef048ce add dispatcher.shutdown() at app stop and make core pool size smaller to let the tests run 2011-10-25 15:08:44 +02:00
Roland
c059d1bc11 Merge branch 'parental-supervision'
commented out one failing test in LoggingReceiveSpec (known, to be fixed
soon by implementing MainBusLogging)
2011-10-25 12:24:39 +02:00
Roland
fc8ab7dad8 fix CallingThreadDispatcher and re-enable its test 2011-10-21 18:47:44 +02:00
Roland
3b698b9470 nearly done, only two known test failures
- moved typed actor factories to app/context (like actor factories)
- fixed a few misplaced supervision changes, all such tests green now
- actually test akka-reference.conf in ConfigSpec
- made DispatcherActorSpec more deterministic (failed intermittently
  here, was due to race towards thread pool)
- wrapped all actor initialization failures into
  ActorInitializationException and made sure that this leads to Stop
- default to Stop on ActorKilledException
- fixed ActorModelSpec to separately supervise the “waves of actors”
  because otherwise the app.guardian is way too busy processing all
  those ChildTerminated messages
- change ActorCell._children from Vector[Stats] to TreeMap[ActorRef,
  Stats] for performance reasons, have not measured memory impact, yet
- ensured that InterrupedException does not leave current thread via
  Failed message to supervisor (wrapped in ActorInterruptedException)
- set core-size=1 and max-size=4 for default dispatcher during test
2011-10-20 23:37:54 +02:00
Jonas Bonér
4ec050c12e Major refactoring of RemoteActorRefProvider, remote Routing and FailureDetector, including lots of fixes and improvements.
- Decoupled FailureDetector from Routing by introducing ConnectionManager which uses FailureDetector instead of it being the same thing.
- Added ConnectionManager
- Added LocalConnectionManager
- Added RemoteConnectionManager
- Improved RoutedProps
- Integrated and added configuration for Scatter Gather router
- Added NoOpFailureDetector
-  Misc API and documentation improvements

Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-10-07 15:42:55 +02:00
Jonas Bonér
e4b66da0b0 Merge branch 'master' of github.com:jboner/akka 2011-10-06 11:34:48 +02:00
Jonas Bonér
d124f6e781 Added configuration based routing (direct, random and round-robin) to the remote actors created by the RemoteActorRefProvider, also changed the configuration to allow specifying multiple remote nodes for a remotely configured actor.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-10-05 18:44:46 +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
Jonas Bonér
16e4be6077 Now treating actor deployed and configured with Direct routing and LocalScope as a "normal" in-process actor (LocalActorRef).
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-09-28 19:28:49 +02:00
Jonas Bonér
9721dbc50a Added configuration based routing for local ActorRefProvider, also moved replication-factor from 'cluster' section to generic section of config'
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-09-28 14:50:09 +02:00
Viktor Klang
a7cb5b5212 Upgrading to SBT 0.11 2011-09-27 10:37:53 +02:00
Viktor Klang
6a4d9e219d Fixing a typo in the event handler dispatcher configuration name and also deprecating some dangerous methods and adding TODOs and FIXMEs 2011-09-26 20:15:49 +02:00
Viktor Klang
63053ab30b Making the event-handlers dispatcher configurable in config, also fixing a nasty shutdown in it 2011-09-26 19:51:06 +02:00
Jonas Bonér
00d3b87586 Merge branch 'remote-actorref-provider'
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-09-22 04:38:33 +02:00
Jonas Bonér
7bc698f864 Moved remote-centric config sections out of 'cluster' to 'remote'. Minor renames and refactorings.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-09-20 16:30:21 +02:00
Viktor Klang
f993219f91 Removing compression from the remote pipeline since it has caused nothing but headaches and less-than-desired performance 2011-09-19 14:04:08 +02:00
Jonas Bonér
cd4a3c3a1a Added RemoteActorRefProvider which deploys and instantiates actor on a remote host.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-09-15 10:20:33 +02:00
Jonas Bonér
85941c0d51 Changed 'deployment.clustered' to 'deployment.cluster'
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-09-14 17:47:52 +02:00
Peter Vlugter
0430e284a6 Get the (non-multi-jvm) cluster tests working again
- avoid initialising the cluster in TransactionLog
- allow TransactionLog to be started and shutdown multiple times
- correct the startup and shutdown in the transaction log tests
2011-09-08 17:19:27 +02:00
Jonas Bonér
0a63350452 Added configuration for failure detection; both via akka.conf and via Deploy(..).
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-08-31 15:07:18 +02:00
Jonas Bonér
0e063f0a1d Converted tabs to spaces.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-08-29 15:16:04 +02:00
Jonas Bonér
66f339e202 Moved all 'akka.remote' to 'akka.cluster', no more 'remote' package.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-08-29 11:44:33 +02:00
Jonas Bonér
66bb47db6a Changed akka.cluster.client.read-timout option.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-08-25 16:15:06 +02:00
Jonas Bonér
2c25f5d972 Changed remote client read timeout from 10 to 30 seconds.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-08-25 09:03:45 +02:00
Viktor Klang
a909bf8d08 #1140 - Adding support for specifying ArrayBlockingQueue or LinkedBlockingQueue in akka.conf and in the builder 2011-08-24 12:42:39 +02:00
Jonas Bonér
dfc1a68aac Fixed race condition in initial and dynamic management of node connections in Cluster
* Using CAS optimistic concurrency using versioning to fix initial and dynamic management of node connections in Cluster
* Fixed broken bootstrap of ClusterNode - reorganized booting and removed lazy from some fields
* Removed 'start' and 'isRunning' from Cluster
* Removed 'isStarted' Switch in Cluster which was sprinkled all-over cluster impl
* Added more and better logging
* Moved local Cluster ops from Cluster to LocalCluster
* Rewrote RoundRobinFailoverMultiJvmSpec to be correct
* RoundRobinFailoverMultiJvmSpec now passes
* Minor reformatting and edits

Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-08-18 11:35:14 +02:00
Viktor Klang
5138fa9764 Removing global dispatcher 2011-08-15 11:40:21 +02:00
Viktor Klang
37a6844d46 Changing default connection timeout to 100 seconds and adding Future Java API with tests 2011-08-12 17:26:26 +02:00
Jonas Bonér
5b2b463ce0 Changed the elements in actor.debug section in the config from receive = "false" to receive = off. Minor other reformatting changes 2011-08-12 14:35:45 +02:00
Viktor Klang
86bd9aaa51 Forward-porting documentation-fixes and small API problems from release-1.2 2011-08-11 19:29:57 +02:00
Peter Veentjer
eae045ff45 ticket 989 #Allow specifying preferred-nodes of other type than node:<name>/
currently the task has been downscoped to only allow node:name since we need to rethink this part. Metadata is going to make it /
it possible to deal with way more nodes
2011-08-09 13:22:05 +03:00
Peter Veentjer
f1bc34cad7 ticket 989 #Allow specifying preferred-nodes of other type than node:<name>/
currently the task has been downscoped to only allow node:name since we need to rethink this part. Metadata is going to make it /
it possible to deal with way more nodes
2011-08-09 13:19:59 +03:00
Viktor Klang
4cd4917f9f Turning remote compression off by default, closing ticket #1083 2011-08-07 19:23:25 +02:00
Peter Vlugter
b2bfe9a944 Some quietening of camel test output 2011-08-05 18:41:53 +12:00
Derek Williams
6d343b01f0 Merge branch 'master' into wip-derekjw
Conflicts:
	akka-actor-tests/src/test/scala/akka/dispatch/FutureSpec.scala
	akka-actor/src/main/scala/akka/actor/ActorRef.scala
2011-07-26 12:50:09 -06:00
Peter Veentjer
e9f4c3ea46 ticket 974: Fix of the ambiguity problem in the Configuration.scala 2011-07-19 16:06:29 +03:00
Peter Veentjer
5635c9f76a ticket 974 2011-07-18 17:55:48 +03:00
Derek Williams
50dcdd411c Merge branch 'master' into wip-derekjw
Conflicts:
	akka-actor-tests/src/test/scala/akka/misc/SchedulerSpec.scala
2011-07-15 11:31:24 -06:00
Brendan W. McAdams
2a56322814 Migrate to Hammersmith (com.mongodb.async) URI Format based URLs; new
config options
    - Mongo URI config options
    - Configurable timeout values for Read and Write
2011-07-11 20:02:14 -04:00
Derek Williams
34ca784846 Merge branch 'master' into wip-derekjw
Conflicts:
	akka-actor-tests/src/test/scala/akka/dispatch/FutureSpec.scala
	akka-actor/src/main/scala/akka/actor/Actor.scala
	akka-actor/src/main/scala/akka/actor/ActorRef.scala
	akka-actor/src/main/scala/akka/actor/TypedActor.scala
	akka-actor/src/main/scala/akka/dispatch/Future.scala
2011-07-11 13:02:42 -06:00
Brendan W. McAdams
87d1094f84 Merge branch 'master' of https://github.com/jboner/akka 2011-07-09 09:58:13 -04:00
Jonas Bonér
0b1ee758f5 1. Implemented replication through transaction log, e.g. logging all messages and replaying them after actor migration
2. Added first replication test (out of many)
3. Improved ScalaDoc
4. Enhanced the remote protocol with replication info

Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-07-08 08:28:13 +02:00
Brendan W. McAdams
7eecff5963 Merge branch 'master' of github.com:bwmcadams/akka 2011-07-05 20:20:15 -04:00
Brendan W. McAdams
1f4cf472ba First pass at Mongo Durable Mailboxes in a "Naive" approach. Some bugs
in Hammersmith currently surfacing that need resolving.
2011-07-05 20:19:47 -04:00
Jonas Bonér
f2dd6bddb3 1. Added configuration option for 'preferred-nodes' for a clustered actor. The replica set is now tried to be satisfied by the nodes in the list of preferred nodes, if that is not possible, it is randomly selected among the rest.
2. Added test for it.
3. Fixed wrong Java fault-tolerance docs
4. Fixed race condition in maintenance of connections to new nodes

Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-07-05 13:28:02 +02:00
Derek Williams
23dcb5d1fe Merge branch 'master' into wip-derekjw 2011-06-19 14:49:50 -06:00
Roland
1e4084e843 document logging and testing settings 2011-06-19 17:08:50 +02:00
Derek Williams
6b73e0982a Added TestEventListener 2011-06-17 16:45:36 -06:00
Jonas Bonér
204f4e2c4c reformatted akka-reference.conf 2011-06-15 13:37:31 +02:00
Debasish Ghosh
a7dffdd445 pluggable serializers - changed entry name in akka.conf to serialization-bindings. Also updated akka-reference.conf with a commented section on pluggable serializers 2011-06-15 13:42:22 +05:30