Commit graph

360 commits

Author SHA1 Message Date
Roland
251a62293a unb0rk akka-actor-nightly build
This means tightening types from Duration to FiniteDuration in several
places; a good thing, since we replace runtime complaints by compile
time errors.
2012-09-14 16:44:38 +02:00
Björn Antonsson
afe30e9038 Removed all dependencies to ScalaTest in the published artifacts. See #1802 2012-09-12 15:12:13 +02:00
Björn Antonsson
6c25954a2d Merge branch 'master' into wip-1802-multijvm-test-harnesses-needs-to-be-published-ban 2012-09-12 11:09:26 +02:00
Patrik Nordwall
911ef6b97e Merge pull request #668 from akka/wip-1588-cluster-death-watch-patriknw
Death watch hooked up with cluster failure detector, see #1588
2012-09-11 06:13:44 -07:00
Björn Antonsson
182510234c Move test of AkkaSpec to test again. 2012-09-10 13:14:49 +02:00
Björn Antonsson
7299450121 Make akka-testkit and akka-remote-tests contain enough for MultiNodeSpec. See #1802 2012-09-10 13:14:48 +02:00
Roland
79c9cdd98e unbreak the akka-actor-nightly build 2012-09-07 16:56:42 +02:00
Viktor Klang
4eee04cb60 #2469 - Switching to scala.util.Try instead of Either[Throwable, T] in the codebase 2012-09-06 03:17:51 +02:00
Roland
0e8a6d3b30 (oh snap, had increased thread count in AkkaSpec) 2012-09-04 10:58:39 +02:00
Roland
7ece60d998 add even more logging 2012-09-04 10:57:13 +02:00
Patrik Nordwall
dad04cf9e5 DeathWatch must only notify when watching, see #1588
* Discard Terminated when not watching the subject
* This will filter eventual duplicates
* Note about the fw case  in Scaladoc of Terminated
* Added description of changed behaviour in migration guide
2012-09-03 18:36:11 +02:00
Björn Antonsson
70ec85b084 Clear out interrupted flag before we recurse. See #2454 2012-08-30 15:21:51 +02:00
Viktor Klang (√)
8de174723b Merge pull request #659 from akka/wip-2450-√
#2450 - Fixing expectMsgAllConformingOf and expectMsgAllClassOf + adding...
2012-08-30 05:38:19 -07:00
Viktor Klang
e462784c09 #2450 - Fixing expectMsgAllConformingOf and expectMsgAllClassOf + adding more tests 2012-08-30 11:59:56 +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
Roland
8211fd6e8f change settings to FiniteDuration where applicable 2012-08-21 09:22:09 +02:00
Roland
48b68c650d Merge branch 'wip-2376-guardianStrategy-∂π' 2012-08-17 14:35:39 +02:00
Björn Antonsson
57ac1da6d1 Fixes from review. See #2385 2012-08-16 22:49:46 +02:00
Roland
c1c05ef95e fix CTD vs. RepointableRef by swallowing exceptions during send
- it was always intended that tell() (and sendSystemMessage()) shall not
  throw any exceptions
- this is implemented by swallowing in ActorCell
  (suspend/resume/restart/stop/!/sendSystemMessage) and in
  RemoteActorRef (!/sendSystemMessage)
- current implementation uses a normal method, which adds overhead but
  keeps the code in one place (ActorCell.catchingSend); this is a great
  opportunity for making use of macros
2012-08-15 21:46:05 +02:00
Roland
f7ea9bf3dd add tests for guardian strategies, see #2376
- this discovered some pretty nice race conditions when creating actors
  synchronously (i.e. system.actorOf) vs. the recent fault-handling fix
  which discards Failed from old incarnations of a certain child
- as a consequence, all actor creation MUST be registered with the
  parent before dispatching the Supervise message
2012-08-15 15:25:43 +02:00
Roland
e3ac633649 add throws clauses to Java APIs 2012-08-09 18:15:38 +02:00
Roland
bf49b75d5e switch to AbstractPartialFunction, see #2357 2012-08-09 17:10:43 +02:00
Roland
0f923c0978 (re)move akka.japi.*PartialFunction and optimize TestKit, see #2357 2012-08-08 16:05:48 +02:00
Roland
6145d4313b some cleanup after Viktor’s comments
- remove useless `cause` argument from some akka exceptions
- improve names of some method arguments
- eliminate some closure allocation
2012-08-08 14:13:52 +02:00
Roland
810d65068e test exceptions from actor constructor in hierarchy, see #2336
This has brought to light some interesting effects (aka bugs) both in
the general implementation as well as in previous fixes.
SupervisorHierarchySpec is without TODOs now and GREEN.
2012-08-08 07:48:23 +02:00
Roland
a19df590a7 make actor-related exceptions be case classes for matching 2012-08-02 14:30:38 +02:00
Roland
faae09ab4e add docs for ExtractRoute, see #2337 2012-07-25 20:48:32 +02:00
Viktor Klang
d3542f8582 #2341 - enabling -deprecation in AkkaBuild and subsequently fixing tons of deprecation warnings 2012-07-24 12:12:06 +02:00
Viktor Klang (√)
29b8035e2b Merge pull request #579 from akka/wip-2337-route-extractor-∂π
add akka.testkit.ExtractRoute, see #2337
2012-07-23 14:31:40 -07:00
Roland
5e6b6f21ff add akka.testkit.ExtractRoute, see #2337 2012-07-23 17:27:05 +02:00
Roland
dca8d15c68 Merge branch 'wip-2212-recursive-resume-∂π' into wip-scala210M5-√
only merged so that it compiles, will clean up warnings in the following
commits
2012-07-23 14:17:45 +02:00
Viktor Klang
1261fab3af Removing akka.util.NonFatal and replacing it with scala.util.control.NonFatal 2012-07-22 15:33:18 +02:00
Viktor Klang
1bf0fe4448 Partial migration to M5 2012-07-17 17:21:08 +02:00
Roland
4bbb1dbcbd rename becomeOpen/becomeSuspended to resume/suspend on Mailbox 2012-07-13 12:25:26 +02:00
Roland
8517d24c3a send Supervise before attaching to dispatcher, see #2301 2012-07-13 11:49:26 +02:00
Viktor Klang
ac5b5de90a Merging in master, huge work trying to get things to compile, tests not green at this stage 2012-07-06 17:04:04 +02:00
Roland
1cb204da49 Merge branch 'master' into wip-2212-recursive-resume-∂π
also split out ChildrenContainer into its own file and add
suspendCounter to UnstartedActorCell
2012-07-05 13:18:19 +02:00
Roland
cde7b29a33 Merge branch 'wip-1952-testkit-java-∂π' 2012-07-04 17:38:20 +02:00
Viktor Klang
52d33113d9 Partial work + broken commit 2012-07-04 15:25:30 +02:00
Roland
78a39198f1 another round of fixes due to suspend counting, see #2212
- always suspend/resume for Suspend/Resume/Recreate, no matter which
  state the actor is in, to keep the counter balanced
- preRestart failures are logged but otherwise ignored; there’s nothing
  else (apart from terminating the actor) which we could do at that
  point
- preRestart/postRestart exceptions have their own distinguishable
  subtype of ActorKilledException now
- fix some race conditions in tests to make them produce fewer false
  failures
- remove cruft from SupervisorStrategy and add methods which can
  actually be used to implement your own (with proper warning signs)
2012-07-04 09:20:17 +02:00
Viktor Klang
e62a0eee1c Merge with master 2012-06-29 16:07:36 +02:00
Viktor Klang
0bf45a9403 Initial work in moving to scala.concurrent.Await + Awaitable 2012-06-29 16:06:26 +02:00
Roland
d7bed79730 add JavaTestKit, see #1952
- it’s a completely new-written thing in pure Java, so that “protected”
  modifiers actually work and no ghost errors appear wrt. inheriting
  from PartialFunction or similar
- it also features integration with the EventFilter
- all closure-based constructs are modeled as inner classes of the
  JavaTestKit, where the user needs to override a single method which
  will then be executed
2012-06-29 14:42:11 +02:00
Viktor Klang
1f6f2c1897 The unb0rkening 2012-06-29 14:07:38 +02:00
Viktor Klang
54a3a44bf8 #2292 - Removing akka.util.Duration etc and replace it with scala.concurrent.util.Duration 2012-06-29 13:33:20 +02:00
Patrik Nordwall
a900052f68 Propagate akka system properties to multi-node tests, see #2280
* Change build to propagate all system properties starting with 'akka.'
  to multi-jvm and multi-node tests.
* Adjusted AkkaSpec and MultiNodeSpec to use load of the config, which
  means that default overrides (system properties) are used.
2012-06-28 11:40:53 +02:00
Viktor Klang
4ae26230b3 Merge branch 'master' into wip-scala210M4-√ 2012-06-26 12:15:46 +02:00
Roland
be74eb835b stashin commit so Iulian can play with it 2012-06-25 19:30:13 +02:00
Björn Antonsson
e2037e254b Merge branch 'master' into wip-2230-race-in-test-conductor-shutdown-ban 2012-06-25 14:40:12 +02:00
Viktor Klang
7f429ed63e Merge with master 2012-06-25 12:55:25 +02:00