Commit graph

22763 commits

Author SHA1 Message Date
Josep Prat
de02d5d6bd [ttk] Add access to logged events in BehaviorTestKit #25905
* [ttk] Add access to logged events in BehaviorTestKit #25905

`BehaviorTestKit` now has methods to:
 - Access to logged events
 - Clear all log events

Added section in docs explaining how to check for logs.

Note about the implementation: `CapturedLogEvent` was effectively private to akka. It uses `OptionVal` internally, this makes it impossible to be used from outside akka. To overcome this, I added some methods to translate it to the corresponding `Option` and `Optional`.

* Apply feedback

Clean up `CapturedLogEvent` by using only `Option` in public methods
Use `immutable.Seq` instead of plain `Seq`
2018-11-30 13:01:37 +01:00
kerr
68dc288b08 Change ask timeout from Timeout to Duration in typed javadsl. (#25975)
* !typ Change the ActorContext#ask in javadsl to accept a Duration instead of Timeout.

* !typ Change the ActorContext#setReceiveTimeout's parameter name from d to receiveTimeout.
2018-11-30 08:20:37 +00:00
kerr
f7a95b5228 !typ Rename ActorContext#upcast to ActorContext#unsafeUpcast. (#25973) 2018-11-30 07:52:04 +00:00
Arnout Engelen
5c653e1404 Don't be specific about the kind of remoting in StreamRefsSpec (#25991) 2018-11-30 07:50:40 +00:00
Helena Edelson
e940643c12
Add receiveOne to TestProbe in Typed #25914 (#25994)
Add receiveOne to TestProbe in Typed (#25914)
2018-11-29 10:27:32 -08:00
Christopher Batey
f6200cc07f
Upgrade to Aeron 1.12 (#25984) 2018-11-29 17:16:43 +00:00
Patrik Nordwall
5ec809f3f4
Merge pull request #26004 from dwijnand/fix-TestProbeImpl-receiveN_internal
Fix TestProbeImpl#receiveN_internal with the receiveOne change
2018-11-29 15:27:37 +01:00
Dale Wijnand
d48c82c247
Fix TestProbeImpl#receiveN_internal with the receiveOne change 2018-11-29 12:46:56 +00:00
Dale Wijnand
d72f26e042 Cleanup TimerSchedulerImpl & TimerInterceptor (#25891)
* Replace TimerMsg hierarchy with a simple mix-in

* Fix a couple of typos

* Remove the need for a cast but just passing a log

* Remove the need for casts by making TimerInterceptor specify it handles Ts

* Prefer a sealed class to a sealed case class
2018-11-29 10:53:25 +00:00
Dale Wijnand
68b5fbb2ff Cleanups in typed TestProbe fishForMessage impl (#25863)
* Tighten MatchError handling in fishForMessage

Avoid a whole bunch of other code being accidentally handled.

Also it allows for the inner 'loop' method to be @tailrec (next commit).

* Guarantee match exhaustion in fishForMessage

... by introducing FishingOutcome.ContinueOutcome to the type hierarchy.

* Simplify some timeout calculation in fishForMessage

'timeout' is always finite, as it's a `FiniteDuration`, and, even if it
weren't, the calculation is safe for non-finite durations.

* Make fishForMessage's inner loop @tailrec!

Apparently @tailrec and try/catch (with a re-throw in the catch) don't
mix well.

* Avoid double handing of timeouts in fishForMessage

If 'newTimeout' is sub-zero, just loop again which will trigger the
other throw.

* Make receiveOne return Option[M] rather than nullable M

Avoid future users from forgetting to consider the null case, which
happened in fishForMessage_internal.

* Switch to pattern matching Options

* Cast properly

Thanks, type inferencer, for inferring Nothing there! o_O

* Make fish's PartialFunction convenience explicit

* Update the scaladsl fishForMessage Scaladocs

* Restore MatchError catching logic & docs

TIL partial functions aren't of class PartialFunction anymore, they're
lambda classes.

* Tweak assertFail so it can be used more

* Avoid name shadowing

... on request. (I <3 name shadowing)

* Fix formatting
2018-11-29 11:25:21 +01:00
Patrik Nordwall
52af98f1da
Merge pull request #25980 from akka/jvmTarget
Specify 'jvm8' target when building on jvm8
2018-11-27 15:41:31 +01:00
Arnout Engelen
baa9d19895 Specify 'jvm8' target when building on jvm8
Refining #25962, fixing the 2.11 build
2018-11-26 13:53:58 +01:00
Patrik Nordwall
039bb26d2c
Merge pull request #25956 from ollyw/fix-streamref-scaladoc
Correct minor mistake in StreamRefs.sinkRef scaladoc
2018-11-23 15:08:43 +01:00
Patrik Nordwall
d2475a381a
Merge pull request #25962 from akka/dontRelyOnBootstrapPathWhenRunningOnJdk8
Don't set bootclasspath when already on jdk8
2018-11-23 15:06:06 +01:00
Arnout Engelen
2ae71dfc32 Don't set bootclasspath when already on jdk8 2018-11-22 13:01:33 +01:00
Oliver Wickham
b61dbb4e64 Correct minor mistake in StreamRefs.sinkRef scaladoc 2018-11-20 15:47:52 +00:00
Jakub Czuchnowski
1d36879e53 Add missing for Custom Stream Processing docs #25940 (#25941) 2018-11-19 10:29:10 +01:00
Christopher Batey
0bf0f1a955 Remove typed DeadLetter class (#25944)
Typed actor system does not wrap dead letters in this, likely left over
from the native impl.
2018-11-19 09:30:12 +01:00
Patrik Nordwall
caec209bf6
Merge pull request #25932 from chbatey/uncomment-test
Uncomment ConstantRateEntityRecoveryStrategySpec
2018-11-18 20:03:09 +01:00
Patrik Nordwall
11e9060dfb
Merge pull request #25938 from chbatey/sharding-start-overloads
Cluster sharding start overlods to avoid passing in settings
2018-11-18 19:34:51 +01:00
Patrik Nordwall
2801180b07
Merge pull request #25939 from chbatey/cluster-provider-msg
Include configuration name in log when cluster not actor provider
2018-11-18 18:38:46 +01:00
Christopher Batey
c8013d54f3 Include configuration name in log when cluster not actor provider 2018-11-16 15:58:59 +00:00
Christopher Batey
1510f43297 Cluster sharding start overlods to avoid passing in settings 2018-11-16 13:06:56 +00:00
Christopher Batey
6c279aa271 Uncomment ConstantRateEntityRecoveryStrategySpec 2018-11-15 16:48:43 +00:00
Helena Edelson
f872115512 Cluster event listener that logs all events #25832 (#25918) 2018-11-15 17:31:58 +01:00
Arnout Engelen
40649151d0 Document docker resource limits (#25925)
* Document docker resource limits

* No longer experimental on JVM10
2018-11-15 15:48:57 +00:00
Oliver Burkhalter
40483a2506 Improve Getting Started Guide Part 3 for writing a first Actor test #25193 2018-11-15 12:55:29 +01:00
Dale Wijnand
fb326b7f01 Cleanup BackoffSupervisor (#25898)
* Dedup scheduleRestart in BackoffSupervisor

* Use show type names in scope

* Finish importing BehaviorInterceptor's types
2018-11-14 17:04:59 +00:00
Arnout Engelen
1c8577b107 Update issue templates (#25912)
* Update issue templates

To perhaps make it clearer that https://discuss.akka.io is the place for questions?

* Remove top-level template in favour of multiple templates

* Remove unintentional hyphens, reword feature request template
2018-11-13 17:45:57 +00:00
Patrik Nordwall
d36d70ee63
Merge pull request #25904 from akka/allowMoreTimeForDockerBindStartup
Allow more time for docker bind startup
2018-11-13 15:08:10 +01:00
Patrik Nordwall
f30f3b2104
Merge pull request #25906 from woq-blended/master
Adding OSGi settings for akka-actor-typed and persistence-typed.
2018-11-13 15:07:00 +01:00
Roman Filonenko
d0feb5f28e fix non-@ref tag in serialization (#25900) (#25901) 2018-11-13 10:06:49 +01:00
Dale Wijnand
17a6a470ee Change untyped EventStream's Event type to Any (#25897)
Having it be AnyRef just makes it harder to use with a generic type,
because now instead of any type `T` it has to be a type `T <: AnyRef`.

There's no benefit in having it as AnyRef over Any.
2018-11-13 07:57:06 +00:00
Andreas Gies
42fb18936f Adding OSGi settings for akka-actor-typed and persistence-typed. 2018-11-12 20:10:20 +01:00
Arnout Engelen
01a496efd5 Allow more time for docker bind startup (#25855) 2018-11-12 09:11:15 +01:00
Christopher Hunt
86884133ed Avoid memory being retained for groupBy #24758
This commit avoids memory being retained for groupBy. Prior to the commit, closedSubstreams could grow unbounded. This commit includes the size of closedSubstreams when considering to take on a new substream, while retaining the semantics described by its Flow API.
2018-11-09 18:28:44 +01:00
kerr
e847ce016a +act add getEventStream to ActorSystem #25870 2018-11-09 12:29:05 +01:00
Johan Andrén
f66ee1cbe8
Handle lost typed receptionist removals #24887
Keep track of removed actors and re-remove them when ORMultiMap conflict has reintroduced them
2018-11-09 10:58:18 +01:00
Patrik Nordwall
ea80ce10fa
Merge pull request #25758 from akka/wip-25485-auction-sample-patriknw
AuctionEntity example in Java, #25485
2018-11-09 10:40:14 +01:00
Patrik Nordwall
42adfd781c
Merge pull request #25801 from akka/wip-25794-ClusterShardingSpec-patriknw
Hardening of typed./ClusterShardingSpec, #25794
2018-11-09 09:53:14 +01:00
Patrik Nordwall
b1b959df50 AuctionEntity example in Java, #25485 2018-11-09 09:48:26 +01:00
Patrik Nordwall
90bc4cfa3e
Improvements of singleton leaving scenario, #25639 (#25710)
* Testing of singleton leaving
* gossip optimization, exiting change to two oldest per role
* hardening ClusterSingletonManagerIsStuck restart, increase ClusterSingletonManagerIsStuck
2018-11-09 09:42:48 +01:00
Patrik Nordwall
f6dbb91175 update latestPatchOf25 (#25892) 2018-11-09 09:16:33 +01:00
Philippus Baalman
90bf989630 Replace scalactic deprecations (#25886) 2018-11-09 09:07:21 +01:00
Christopher Batey
847a7c1afd Add warning about nsswitch to dns docs (#25889) 2018-11-09 09:06:17 +01:00
Dale Wijnand
3744baf82f Make OpenAccount#applyEvent match exhaustive (#25890) 2018-11-09 09:05:23 +01:00
Patrik Nordwall
70176341d9
Merge pull request #25847 from chbatey/dns-warn
Warn about async-dns lack of support for search domains
2018-11-07 12:36:00 +01:00
Arnout Engelen
14d9b845c4
Clarify CrossJava will be on-par in sbt 1.3.0 (#25876) 2018-11-07 09:48:30 +01:00
Martynas Mickevičius
6cbba51f94 Update to the latest Akka Paradox that adds icons to goto source links (#25881) 2018-11-07 09:19:02 +01:00
Patrik Nordwall
784e300343
Merge pull request #25818 from akka/wip-25642-auto-sharding-stop-msg-patriknw
Make the stop message in sharding optional, #25642
2018-11-06 21:31:52 +01:00