Commit graph

349 commits

Author SHA1 Message Date
Viktor Klang
a7e9ff4fba Switching to AbortPolicy by default 2011-11-14 19:48:06 +01:00
Roland
02a5cd081c remove ActorRef from Failed/ChildTerminated and make some warnings nicer
- the same information is transmitted as sender, hence enabling
  ChildTerminated to become a singleton
- make lastSender accessible in TestKit (needed now for DeathWatchSpec)
- fix nasty infinite loop when logging at the wrong moment during
  shutdown
2011-11-13 00:19:56 +01:00
Roland
56cb2a2f30 clean up test output, increase default timeouts
- apply EventFilters so that at least on my machine no expected messages
  are printed
- add new test config settings to akka-reference.conf
- set default for loglevel to WARNING
- print out timeout values in case of various timeouts if they occur
2011-11-11 20:56:48 +01:00
Peter Vlugter
a7ed5d7816 Update deployer to use actor path rather than old address (name) 2011-11-10 12:21:42 +01:00
Jonas Bonér
85fc8be749 Merge branch 'master' of github.com:jboner/akka 2011-11-10 11:51:04 +01:00
Jonas Bonér
f4740a4798 Moved 'failure-detector' config from 'akka.actor.deployment.address' to 'akka.remote'. Made AccrualFailureDetector configurable from config. 2011-11-10 11:50:11 +01:00
Roland
70ae4e1984 Merge branch 'logging'
known failures in BalancingDispatcherModelSpec and ActorPoolSpec have
tickets
2011-11-09 18:18:32 +01:00
Viktor Klang
0b2690ec50 Adding support for reusing inbound connections for outbound messages, PROFIT 2011-11-09 17:17:03 +01:00
Viktor Klang
51a01e252f Removing akka-http, making so that 'waves of actors'-test fails when there's a problem and removing unused config sections in the conf file 2011-11-09 15:47:57 +01:00
Roland
b35f8dece0 incorporate review from Viktor & Jonas
- use intercept[]{} in PinnedActorSpec
- make Logging.logLevel_= thread safe
- add lots of scaladoc
- make more friendly to Java API
2011-11-03 18:56:20 +01:00
Roland
f46c6dc533 introducing: MainBus feat. LoggingBus
most tests passing, everything compiling, but docs not updated and nasty
thread-leak preventing me from running the whole test-suite (which is
the reason for this commit: I want to chase down that one first).

- the app.mainbus is classified by Class[_] (currently lookup, will
  possibly change to sub-class-aware) and accepts AnyRef messages
- LoggingBus handles akka.event-handlers from config specially:
  + start them as system services, supervised by SystemGuardian
  + keep their subscriptions in sync when logLevel_= is called
  + send them InitializeLogger(bus) message before subscribing them (so
    they can register for extras like Mute/UnMute)
- two-phased start-up: first phase with actor-less stdout logging, then
  subscription of config loggers, then remove stdout logger (logLevels
  configurable separately)
- MainBusReaper watches registered receivers and unsubscribes them upon
  death (started in phase 2)
- logger factory on Logging object, needs app/bus and log source;
  default instance in app.log
2011-10-27 12:36:22 +02:00
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