Commit graph

22805 commits

Author SHA1 Message Date
Patrik Nordwall
7bce22f2ea revert to sbt 1.2.6, because unidoc issue
* the update to sbt 1.2.7 in commit 6ba4c341f5
  broke unidoc (javadoc)
2018-12-06 12:48:08 +01:00
Patrik Nordwall
4742a23e9e only unidoc for Scala 2.12, #25985
* otherwise the docs built with 2.11 will be published for release,
  since the 2.11 build is last
2018-12-06 12:48:01 +01:00
Arnout Engelen
7afd847758 fix akka-cluster-sharding-typed/test:compile (#26046)
Weird that CI didn't catch this
2018-12-05 10:30:38 +00:00
Christopher Batey
bf714dd72a BackoffSupervisorSpec: Fix race of terminated messages (#25947) 2018-12-05 11:25:50 +01:00
kerr
3012154ae6 =typ Remove the AskResponse message. (#25971)
* =typ Remove the AskResponse message.

* =typ import `akka.actor` as `akka.untyped` but not `akka.a`.
2018-12-05 10:14:35 +00:00
Christopher Batey
f1b9adb0c4
Behavior.orElse start the other behavior (#25977)
* Behavior.orElse start the other behavior
* Finalize the case classes
2018-12-05 10:10:48 +00:00
kerr
e9fb3a020a Make use of scalafix to remove unused import. (#26019)
* =build Add scalafix to remote unused import.

* +build Add file ignore plugin for scalafix which support ignore files.
2018-12-05 08:30:21 +00:00
Saleh Khazaei
c383f4483b Warn if handOffStopMessage not handled (#25648)
* Stops entities of shard forcefully if they don't handle stopMessage #23751

* Prints a warning log while stopping the entities

* fix version of backward exclude file and checks for shard stopped

* adds documentation for handoff timeout
2018-12-04 18:20:58 +01:00
Christopher Batey
af38a1eefd
Harden NettyTransportSpec (#25500)
* Harden NettyTransportSpec

Keep the temporary port open while the ActorSystem is created so it
can't select the same port to bind on.

Fixes #25479
2018-12-04 15:59:54 +00:00
Christopher Batey
b38b407c73
Typed sharding: Allow queying of local shard region (#25409)
* Typed sharding: Allow quering of local shard region

Partially addresses #24466 still need to query
all shard regions

* Update to new testkit
2018-12-04 15:53:07 +00:00
kerr
895cd70b86 Upgrade Scala version to 2.12.8. (#26039) 2018-12-04 15:50:38 +00:00
Johannes Rudolph
b649b4e2d0 Don't throw away error causes in TcpStreamLogic (#25617)
* =str ensure TcpStreamLogic sets cause of StreamTcpException

* =str make sure TcpStreamLogic will report connection errors to localAddressPromise if possible
2018-12-04 15:27:15 +00:00
Johannes Rudolph
9e739ea2f1
Merge pull request #25923 from jrudolph/jr/25733-selector-woes-on-jdk11
#25733 close channels from SelectionHandler to make sure they are properly flushed from Selector
2018-12-04 15:52:53 +01:00
Patrik Nordwall
fe2e5cb5a8 Runtime check that Netty version is 3.10.6, #25967
* Fail fast if invalid Netty version is used.
* Issue netty/netty#4739 may cause messages to not be delivered.
2018-12-04 15:37:04 +01:00
Johannes Rudolph
c462ecb60f Simple JDK 11 fixes (#26038)
* TLSSpec fix for Java 11 #25739

* =act silence logging in AsyncDns specs

* +act Add internal akka.util.JavaVersion for determining runtime Java version

* =act #25733 run TcpIntegrationSpec peers on different ActorSystems

* pro: add explicit dependency to activation when using dockerClient for JDK 11+

Otherwise, the log is spammed with lots of ClassNotFound exceptions when
running AsyncDnsResolverIntegrationSpec
2018-12-04 15:26:47 +01:00
Ignasi Marimon-Clos
cb20b21d21 Small wording improvements. (#26032)
* Small wording improvements.

* Update akka-docs/src/main/paradox/stream/operators/Source/cycle.md

* Update akka-docs/src/main/paradox/stream/operators/Source/cycle.md
2018-12-04 15:11:53 +01:00
Edison
ee41f55754 Clarify routee paths do not support full path under cluster #25935 (#25957) 2018-12-04 14:58:40 +01:00
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
Johannes Rudolph
7899708ca6
=act #25733 close channels from SelectionHandler and force flushing from selector
This is needed because starting from JDK 11 all platforms will only finally
close a channel when it is flushed from a selector.

Fixes #25733.
2018-12-04 12:03:18 +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