Commit graph

22839 commits

Author SHA1 Message Date
Patrik Nordwall
3916ef382e
Merge pull request #26092 from dwijnand/give-BackoffSupervisor-an-O-outer-msg-type-param
Give BackoffSupervisor an "O" outer msg type param
2018-12-10 13:42:52 +01:00
Patrik Nordwall
8fd4cb5298
Merge pull request #26094 from dwijnand/use-OptionVal-over-null-in-typed-TimerSchedulerImpl/TimerInterceptor
Use OptionVal over null in typed TimerSchedulerImpl/TimerInterceptor
2018-12-10 13:30:49 +01:00
Aleksei Molokovskikh
4fe5b1cb59 fixed deprecated method in getting started guide (#26083) 2018-12-10 10:45:24 +00:00
Dale Wijnand
9f102813b6 Remove typed.ActorRef#sorry/sorryForNothing (#26090)
These were unsafe (despite the lying commnet) & unused.
2018-12-10 10:44:37 +00:00
Dale Wijnand
384c92dc89
Use OptionVal over null in typed TimerSchedulerImpl/TimerInterceptor 2018-12-09 22:57:05 +00:00
Dale Wijnand
a1ed1d3215
Give BackoffSupervisor an "O" outer msg type param
This begins to reintroduce some typesafety into BackoffSupervisor, using
the necessary cast internally where this isn't honoured.
2018-12-09 22:07:46 +00:00
Patrik Nordwall
712b72f649
Merge pull request #26069 from akka/wip-PatternCS-followup-patriknw
doc and test follow up of PatternCS, #26000
2018-12-06 21:26:59 +01:00
Christopher Batey
e1dc8dcb4e Dont run DnsDiscoverySpec if docker not available (#26071)
* Dont run DnsDiscoverySpec if docker not available

Fixes #26062
2018-12-06 21:24:53 +01:00
Patrik Nordwall
bb3a40010c another remove redundant yet, from PR #26049 2018-12-06 20:18:23 +01:00
Christopher Batey
66fa541118
Make exception in Terminated explicit it is just for child termination (#25992)
* Remove exception from typed Terminated

This currently only works for direct child actors and breaks when using
typed supervision.

It could be re-introduced by supervision returning a new special
behavior that the actor adaper for failed with an exception.

* Try out keeping the terminated and adding a ChildTerminated subclass of Terminated

Some tests need updated will fix those if we decide this is better

* Fix duplicate logging + make it Terminated + ChildFailed
2018-12-06 17:49:25 +00:00
Christopher Batey
da71e2044e
Allign typed singleton with typed sharding (#26013)
* Allign typed singleton with typed sharding

* Singleton class for setting proerties
* Make stop message optional

Closes #25670
2018-12-06 16:26:38 +00:00
Patrik Nordwall
1f4812d8a5 doc and test follow up of PatternCS, #26000 2018-12-06 17:18:47 +01:00
Patrik Nordwall
7439893f12
Merge pull request #26049 from robertgol/patch-1
remove redundant yet
2018-12-06 15:54:08 +01:00
Patrik Nordwall
cf95381df7
Merge pull request #26051 from hepin1989/internal
Change InternalMessage to be private[akka].
2018-12-06 15:52:01 +01:00
Patrik Nordwall
b04accefa0
Merge pull request #25833 from akka/wip-getting-started-typed-patriknw
Translate Getting Started Guide to Typed, #25998
2018-12-06 15:45:17 +01:00
kerr
b7f3cbef94 Merge PatternsCS to Patterns (#26008)
* !act Move some Java API methods from PatternsCS to Patterns.

* Deprecate PatternCS and in favor of Patterns.
2018-12-06 15:40:43 +01:00
Patrik Nordwall
4f100a1f1e
Merge pull request #26058 from akka/wip-discovery-version-patriknw
add akka-discovery to version check
2018-12-06 15:39:09 +01:00
Patrik Nordwall
918843d54e
Merge pull request #26050 from akka/wip-25985-unidoc-patriknw
only unidoc for Scala 2.12, #25985
2018-12-06 15:38:11 +01:00
Patrik Nordwall
76276e6504 Translate Getting Started Guide to Typed, #25998
* convert example code
* update doc content
* update diagrams
* rewrite parental supervison part
2018-12-06 15:29:39 +01:00
Patrik Nordwall
4966d5262e fix type bounds of expectMessageClass in javadsl in Typed 2018-12-06 14:52:38 +01:00
Patrik Nordwall
0d0a0e8018 fix javadsl awaitAssert in Typed, #25903
* returning null would result in retries until "timeout value is negative"
* use same implementation as in untyped
* real test
2018-12-06 14:52:38 +01:00
Patrik Nordwall
e1a0a1fa3f Save EntityStarted when StartEntity requested via remembered entities (for validation) (#26061)
* Save EntityStarted when StartEntity requested via remembered entities
2018-12-06 13:49:47 +00:00
Patrik Nordwall
850a10443b support stop of TestProbe 2018-12-06 14:48:52 +01:00
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
Patrik Nordwall
4f0d793f16 add akka-discovery to version check 2018-12-06 12:32:29 +01:00
Christopher Batey
e5c1fc02a9
Support ClusterSharding passivation in BackoffSupervisor (#25933)
* Specific final stop message predicate instead of arbitrary action
2018-12-06 10:10:37 +00:00
hepin1989
252f3432c5 Change InternalMessage to be private[akka]. 2018-12-06 04:08:28 +08:00
Nicolas Vollmar
8b8c7355bf Adding loglevel for overflow strategy #25949 (#25976)
* Adding loglevel for overflow strategy (#25949)

* Simplifying overflow strategy api (#25949)

* Adding overflow strategy check for backpressu (#25949)

* Adding log statements to all stages with overflow strategy (#25949)

* Adding excludes for internal api changes (#25949)

* Adding internal api annotations (#25949)

* Adding log source overrides for better logger names (#25949)

* Moving mima excludes for 2.5.18 (#25949)
2018-12-05 13:31:43 +00:00
Christopher Batey
c5c2f951db Dns discovery custom resolver (#25937)
* Import service discovery from akka-management

* Rename extension to Discovery to go with akka-discovery name
* Rename interafce to ServiceDisovery
* Import config, aggregate and dns
* Discovery documentation
* Load isolated async-dns if not configured as default
* OSGi for discovery
* Remove warning for not using in production
* Fail if old akka management on classpath
* Only allow async dns to be loaded as an additional resolver
* Use method in all of service discovery, not mechanism
* Mima filter
* Add discovery to aggregate
* Set discovery mima versions
* DnsDiscoverySpec: Only run docker test if docker available
2018-12-05 14:01:24 +01:00
Patrik Nordwall
bca269d684
Merge pull request #25989 from chbatey/graal
Add Graal recommendation to contributing guide
2018-12-05 13:52:48 +01:00
Patrik Nordwall
ab7591b809
Merge pull request #26048 from akka/wip-26036
Rename PersistentBehavior (#25721) (for validation)
2018-12-05 13:43:19 +01:00
Robert Golusiński
2b7ba8f9f1
remove redundant yet 2018-12-05 13:19:27 +01:00
Christopher Batey
69c58b3725
Harden AsyncDnsResolverIntegrationSpec (#25908)
* Harden AsyncDnsIntegrationSpec
* Ensure that the port is available on TCP and UDP
* Don't listen on ipv6 (fails on jenkins sometimes)
2018-12-05 11:35:10 +00:00
Helena Edelson
dbfe6f38c7 Rename PersistentBehavior (#25721)
Migrated InternalProtocol with least refactor changes, in the end.
2018-12-05 12:05:59 +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