Commit graph

22787 commits

Author SHA1 Message Date
Christopher Batey
14377ae8cf Add additional java api for updated for ORMap (#25926)
* Add additional java api for updated for ORMap

Existing updated is ambiguous from Java with the Scala API.

* Remove warnings from DurablePruningSpec
2018-12-04 14:51:41 +01:00
Patrik Nordwall
1a25c8a5ad
Merge pull request #25990 from nvollmar/nvo-alsoto-wiretap-doc
Adding links to wireTap and alsoTo docs #25808
2018-12-04 14:40:13 +01:00
Patrik Nordwall
134826afff
Merge pull request #26040 from akka/widenTimeoutClusterShardingPersistenceSpec
Widen timeout to fix ClusterShardingPersistenceSpec
2018-12-04 13:38:27 +01:00
Arnout Engelen
e761a072fe Widen timeout to fix ClusterShardingPersistenceSpec #25936 2018-12-04 12:29:27 +01:00
Patrik Nordwall
2f76b1a074
Merge pull request #26037 from chbatey/log-frame-size-exceeding-broken
Parse akka.remote.log-frame-size-exceeding as bytes
2018-12-04 12:20:26 +01:00
Christopher Batey
8419671de2 Typed Persistence: onRecoveryFailure callback (#25993) 2018-12-04 10:25:00 +01:00
Christopher Batey
3acc50feb4 Parse akka.remote.log-frame-size-exceeding as bytes
Missed in PR validation as only used in multi jvm tests
2018-12-04 09:20:29 +00:00
Josep Prat
5ccfc12eb5 Add additional constructors for CapturedLogEvent (#26016)
As requested in PR #25907 - more constructors to cover more simple cases
2018-12-04 09:54:17 +01:00
Jakub Czuchnowski
a8d37f5d28 Add missing import to the Inbox example (#26026)
* Add missing import to the Inbox example
2018-12-04 08:51:44 +00:00
Patrik Nordwall
00d869724a Remove Deprecated CounterSecureRNG, #25978 (#25979) 2018-12-04 09:50:37 +01:00
Arnout Engelen
2b2f9841b7 Remove akka-ssl-config (#26034)
This is now part of akka-stream directly
2018-12-04 09:47:58 +01:00
Jason Longshore
24c57269af Fix punctuation in incompatible version warning (#26035) 2018-12-04 09:46:17 +01:00
Ignasi Marimon-Clos
ed868adf53 Replaces DNS TTL primitive types with Duration (#25850)
* Adds tests on deprecated TTL Long values

* Replace primitive-based TTL with ADT+Duration

* Remove unnecessary scaladoc

* Rename vals to apropriate language

* Fix regression introduced on refactor

* Renames ADT after discussing on PR

* Adds mima rules

* Makes code internal. Improves usage of Duration API

* Fix previous commit

* Refactor: move CachePolicy to akka.io.dns.iternal, and wrap ADT in object

* Ttl is now a sealed abstract case class

* Makes CachePolicy public, ApiMayChange

* Fix code header

* Adds logging when falling back to default values

* Turns Ttl into a regular class with validation on constructor.

 * Include apply, unapply, equals, hashCode, toString

* Fixes MiMa (new akka version happened)

* Makes Ttl final

* Simplifies equals and hashcode

* Replace apply in favor of fromPositive

* Improve misleading message

* Minor PR comment fixes

* Add Ttl.fromPositive(java.time.Duration)
2018-12-03 15:54:19 +00:00
Christopher Batey
2a94bfdde5
Full compile on travis (#26029) 2018-12-03 15:35:48 +00:00
kerr
6ba4c341f5 update sbt and sbt plugins (#26017)
* =build update sbt to 1.2.7.

* =build update sbt plugins.
2018-12-03 15:14:27 +00:00
Chris
e11b4cf2de Update verbiage on module documentation page (#26018) 2018-12-03 15:07:04 +00:00
Patrik Nordwall
3d3a636e9a
Merge pull request #26028 from chbatey/master-211-broken
Fix 2.11 compilation
2018-12-03 16:02:23 +01:00
Daniel Bimschas
f18a00e4d8 Log a warning if 'akka.remote.log-frame-size-exceeding' contains a bad value (#25284)
* Log a warning if 'akka.remote.log-frame-size-exceeding' contains a bad value

Currently, if 'akka.remote.log-frame-size-exceeding' is accidentally set
to an invalid value (e.g. 'on') the developer does not get warned but
remote communication fails with a not-very-helpful error message:

```
[INFO] [06/29/2018 15:07:41.657] [run-main-0] [akka.remote.Remoting] Starting remoting
[INFO] [06/29/2018 15:07:41.847] [run-main-0] [akka.remote.Remoting] Remoting started; listening on addresses :[akka.tcp://akkaremotenull@localhost:2553]
[INFO] [06/29/2018 15:07:41.849] [run-main-0] [akka.remote.Remoting] Remoting now listens on addresses: [akka.tcp://akkaremotenull@localhost:2553]
[WARN] [06/29/2018 15:07:41.986] [akkaremotenull-akka.remote.default-remote-dispatcher-5] [akka.tcp://akkaremotenull@localhost:2553/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2Fakkaremotenull%40localhost%3A2552-0] Association with remote system [akka.tcp://akkaremotenull@localhost:2552] has failed, address is now gated for [5000] ms. Reason: [akka://akkaremotenull/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2Fakkaremotenull%40localhost%3A2552-0/endpointWriter: exception during creation] Caused by: [null]
[INFO] [06/29/2018 15:07:41.993] [akkaremotenull-akka.actor.default-dispatcher-3] [akka://akkaremotenull/deadLetters] Message [io.ino.akkaremotenull.Greeter$Greet] from Actor[akka://akkaremotenull/temp/$a] to Actor[akka://akkaremotenull/deadLetters] was not delivered. [1] dead letters encountered. If this is not an expected behavior, then [Actor[akka://akkaremotenull/deadLetters]] may have terminated unexpectedly, This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.
```

This commit fixes the issue by a) printing a warning message and b)
ignoring the config setting.

* Adress review comments

Allows value 'off' for 'akka.remote.log-frame-size-exceeding' to be more
tolerant and now logs the original error message of the ConfigException
caught when parsing an invalid value:

```
[WARN] [07/05/2018 09:13:19.544] [akkaremotenull-akka.remote.default-remote-dispatcher-13] [RemoteMetricsOn(akka://akkaremotenull)] application.conf @ file:/Users/danbim/coding/akka-remote-null/target/scala-2.12/classes/application.conf: 19: Invalid value at 'akka.remote.log-frame-size-exceeding': No number in size-in-bytes value 'test'. For reference, check https://github.com/lightbend/config/blob/master/HOCON.md
```

* Check logFrameSizeExceeding against Int.MaxValue to allow JIT optimizations

* Load 'akka.remote.log-frame-size-exceeding' in RemoteSettings
2018-12-03 14:59:09 +00:00
Patrik Nordwall
cea5fbcbf5 update aeron.dir in test (#26031)
* updated sbt probably use a different way of resolving current working directory
2018-12-03 14:10:02 +00:00
Christopher Batey
629f462030 Fix 2.11 compilation
And avoid default params in a public api
2018-12-03 09:13:13 +00:00
Patrik Nordwall
4245e41392
Merge pull request #25916 from dwijnand/tweak-persistence-doc-intro
Tweak the introduction to akka persistence
2018-11-30 16:43:54 +01:00
Dale Wijnand
91a9f340ad
Tweak the introduction to akka persistence
Specifically:

* avoid "internal", as I initially though that meant the Akka framework's internal state of an actor
* dropped "started" in the context of recovering an actor: in order to recover you have to have been already started
* rather than refering to "changes", reference that what's persisted are the actor's received events
* some general English re-wording
2018-11-30 13:59:31 +00:00
Dale Wijnand
582b966267 Mark Behavior as @ApiMayChange & not @InternalApi (#26014) 2018-11-30 13:02:32 +01:00
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
Nicolas Vollmar
6e21853797 Adding links to wireTap and alsoTo docs (#25808) 2018-11-27 12:08:53 +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