Commit graph

624 commits

Author SHA1 Message Date
Roland Kuhn
d6ff7166d7 Merge pull request #1394 from drexin/wip-drexin-remove-deprecated-props-calls-java
removed calls to deprecated Props constructor in java code
2013-05-03 01:36:45 -07:00
Patrik Nordwall
33a8808a6d Enable usage of MultiJvm nrOfNodes in cluster StressSpec, see #2787
* Adjustments to StressSpec for testing large clusters
* Performance improvement of mute deadLetters
2013-05-02 19:17:08 +02:00
drexin
308428e7bc removed calls to deprecated Props constructor in java code 2013-05-02 17:00:44 +02:00
Björn Antonsson
bdfc1e4bf9 Merge pull request #1377 from akka/wip-2936-count-number-of-threads-during-tests-ban
Count the number of threads during tests to find leaks. #2936
2013-05-02 07:12:32 -07:00
Björn Antonsson
d34996ae11 Count the number of threads during tests to find leaks. See #2936 2013-04-29 13:32:00 +02:00
Dario Rexin
b947b7208d removed some deprecation warnings from akka-testkit 2013-04-26 21:12:58 +02:00
Patrik Nordwall
2ebb2a0b9c Solve UnreachableNodeJoinsAgainSpec problem, see #3247
* UnreachableNodeJoinsAgain failed because of gated connection
* Removed default test value of retry-gate-closed-for, instead
  default from reference.conf is used, i.e. 0s
* deadLetters logging love
2013-04-23 15:43:10 +02:00
Björn Antonsson
c3eed374f1 Allow different types of mailboxes on the same dispatcher. See #2687 2013-04-19 13:42:58 +02:00
Viktor Klang
2c5370f7ba #3198 - Making CoronerSpec taggedAs TimingTest 2013-04-10 13:07:31 +02:00
Viktor Klang
dd03b40c5a #3215 - fixing race in JavaTestkitSpec 2013-04-10 10:56:09 +02:00
Viktor Klang
e59394628c #3206 - Adding expectTerminated to TestKit 2013-04-09 14:48:17 +02:00
Patrik Nordwall
c77cdeb86b Merge pull request #1277 from akka/wip-3074-deprecate-actorFor-patriknw
Deprecate actorFor in favor of ActorSelection, see #3074
2013-04-08 11:48:48 -07:00
Patrik Nordwall
887af975ae Deprecate actorFor in favor of ActorSelection, see #3074
* Deprecate all actorFor methods
* resolveActorRef in provider
* Identify auto receive message
* Support ActorPath in actorSelection
* Support remote actor selections
* Additional tests of actor selection
* Update tests (keep most actorFor tests)
* Update samples to use actorSelection
* Updates to documentation
* Migration guide, including motivation
2013-04-08 18:11:52 +02:00
Patrik Nordwall
4b563dacb2 Merge pull request #1311 from akka/wip-2728-testfsmref-patriknw
Cleanup of TestActorRef constructor, see #2728
2013-04-08 07:19:38 -07:00
Patrik Nordwall
9bf46e476c Cleanup of TestActorRef constructor, see #2728
* Don't expose internal classes in public constructor
2013-04-08 12:02:27 +02:00
Patrik Nordwall
f5f3608111 Make JavaTestKit match TestKit, see #3042
* Added a few methods
* Added (copied and adjusted) JavaDoc
2013-04-08 11:36:43 +02:00
Viktor Klang (√)
641e499cc4 Merge pull request #1287 from akka/wip-2970-lightweight-ec-form-promiseactorref-√
#2970 - Removing scheduler and dispatcher from ARP and reimplementing P...
2013-04-03 11:23:54 -07:00
Viktor Klang
fcfe7b4617 #2970 - Removing scheduler and dispatcher from ARP and reimplementing PromiseActorRef to use an internal calling thread EC 2013-04-03 19:12:03 +02:00
Viktor Klang
c883705242 #3018 - Enabling -Xlint and dealing with the situation that occurs 2013-03-29 01:43:17 +01:00
Björn Antonsson
428bdf5fb4 Merge pull request #1275 from akka/wip-make-coroner-print-full-stack-traces-ban
Make The Coroner print full stack traces.
2013-03-26 03:06:50 -07:00
Björn Antonsson
f7ad87ce8d Make The Coroner print full stack traces. 2013-03-25 15:11:40 +01:00
Patrik Nordwall
118917d2be awaitCond = awaitCond with better error reporting, see #3168 2013-03-25 12:58:25 +01:00
Endre Sándor Varga
f8c3717ca1 Changed Failed to be a SystemMessage
- Moved system messages to their own package.
 - All queueing operations are now hidden behind a SystemMessageList value class
 - Introduced dual SystemMessageList types to encode the ordering in the type.
   - Protects against accidentally missed reverse calls or accidentally reversed lists
   - Makes ordering expectations by fields/parameters explicit
 - Fixed serialization tests
 - Fixes to logging in HierarchyStressSpec
2013-03-22 12:02:31 +01:00
Rich Dougherty
a78e26ae41 Merge pull request #1211 from akka/wip-3110-test-thread-dump-rich
Dump diagnostics (Coroner's Report) if a test takes too long. Fixes #3110
2013-03-07 23:21:35 -08:00
Rich Dougherty
f6a14cb5ac Dump diagnostics (Coroner's Report) if a test takes too long. Fixes #3110 2013-03-08 12:39:19 +13:00
Roland
bcfbea42c1 fix formatting of Java API in doc comments + genjavadoc 0.3 2013-03-07 09:05:55 +01:00
Björn Antonsson
cd847e3a29 Merge pull request #1214 from akka/wip-3064-tcpconnectionspec-times-out-ban
Back off if another thread has processed all messages for this actor. See #3064
2013-03-06 06:41:51 -08:00
Björn Antonsson
ccdee92961 Back off if another thread has processed all messages for this actor. See #3064 2013-03-06 14:05:04 +01:00
Björn Antonsson
bec41e9ba6 Adding more information in TestKit asserts. See #3040 2013-02-28 09:41:08 +01:00
Patrik Nordwall
2a45d99ab3 Change more copyright to 2009-2013, see #2879
* Also added some missing headers
2013-02-20 21:26:52 +01:00
Rich Dougherty
b6c1527cbd Add receiveN to JavaTestKit. Fixes #3029 2013-02-13 15:30:15 +13:00
Rich Dougherty
3b98ba249b Improved router documentation. Fixes #2874
* Edit of basic usage and design.
  * Rearranged order of sections.
  * Added more information on special message types.
  * Added receiveN to JavaTestKit.
2013-02-12 12:25:41 +13:00
Patrik Nordwall
c7ed66d3d8 Merge pull request #1105 from akka/wip-3009-deadLetters-sender-patriknw
Preserve sender when sending to deadLetters, see #3009
2013-02-05 02:35:13 -08:00
Patrik Nordwall
2476831705 Rename event-handlers to loggers, see #2979
* Rename config akka.event-handlers to akka.loggers
* Rename config akka.event-handler-startup-timeout to
  akka.logger-startup-timeout
* Rename JulEventHandler to JavaLogger
* Rename Slf4jEventHandler to Slf4jLogger
* Change all places in tests and docs
* Deprecation, old still works, but with warnings
* Migration guide
* Test for the deprecated event-handler config
2013-02-05 11:19:02 +01:00
Patrik Nordwall
939893ef5f Preserve sender when sending to deadLetters, see #3009 2013-02-04 12:41:58 +01:00
Viktor Klang
e519e3dc3b #2986 - Changing ActorContext and ActorRefFactory's dispatcher to return ExecutionContext 2013-01-31 15:41:31 +01:00
Patrik Nordwall
ed18c57183 Stop sending 'timeout' from ReceiveTimeoutActor, see #2961 2013-01-28 16:40:33 +01:00
Roland
c0e85c71ce fix CallingThreadDispatcherModelSpec, see #2821
The problem was that the “waves of actors” test leaves behind lots of
garbage for the CTD to clean up, and its own
CallingThreadDispatcherQueues.gc() then happens to run when the guardian
creates the top-level actor in the following test case, which takes
longer than 3 seconds to run. Fix it by making the GC interval 100ms
instead of 1sec so that the amount of garbage is limited.

Also, replacing .mapValues(...).filter(...) with
.foldLeft(.newBuilder)(...) makes it twice as fast.

And even more so: unregistering mailboxes upon actor termination removes
the cost nearly completely for the “waves of actors” case.
2013-01-25 08:12:24 +01:00
Roland
405174d4c3 don’t use the testActor.queue for probe.watch(), see #2915 2013-01-24 13:44:54 +01:00
Roland Kuhn
7066b37077 Merge pull request #1027 from akka/wip-2904-timer-∂π
first cut of new AkkaTimer, see #2904
2013-01-23 11:06:41 -08:00
Roland
8dea20a1f1 LightArrayRevolverScheduler, see #2904
- based on a wheel (AtomicReferenceArray) from which atomic
  single-linked lists dangle
- no locks
- deterministic tests due to overridable time source
- also bring docs up to date
2013-01-23 19:57:44 +01:00
Viktor Klang
adfeb2c1f0 #2879 - updating copyright info 2013-01-09 11:38:00 +01:00
Roland
6c31d5313e rename AkkaSpec.{atTermination => afterTermination} 2013-01-03 17:17:12 +01:00
Roland
ff24be7650 introduce AkkaSpec.beforeTermination hook, e.g. to silence shutdown logs
- apply it in RemoteRouterSpec, RemoteDeathWatchSpec, RemotingSpec,
  AkkaProtocolStressTest and ThrottlerTransportAdapterSpec
2013-01-03 17:09:11 +01:00
Viktor Klang
d0717aaec6 #2776 - deprecating and introducing alternatives for methods and parameters ending with '_?' 2012-12-14 14:55:21 +01:00
Rich Dougherty
9a1e7d0519 Rename FSM and TestFSMRef's timerActive_? to isTimerActive. Fixes #2766 2012-12-06 17:28:49 +01:00
Rich Dougherty
075dbe1ec6 Cancel all timers when FSM terminated. Fixes #2689 2012-12-04 15:33:37 +01:00
Patrik Nordwall
b06b0fa087 DOC: Formatting issues, see #2723
(cherry picked from commit 15abee84875cdb534056986b9172a38b57d24d92)
2012-11-22 17:23:18 +01:00
Viktor Klang
b00c47854b Switching over to immutable.Iterable where possible 2012-11-14 16:24:25 +01:00
Viktor Klang
8f131c680f Switching to immutable.Seq instead of Seq 2012-11-12 14:17:47 +01:00