Commit graph

957 commits

Author SHA1 Message Date
Johan Andrén
0be752efcb Cluster client caveats #26257 2019-01-17 19:13:22 +01:00
Pierre-Marie Padiou
dcb17b1d0c Fix comment in hashtag example of streams quickstart doc 2019-01-17 16:51:28 +01:00
Patrik Nordwall
b4fa591d64
Support stop or keep of child actors when parent is restarted, #25556
* stash messages and signals while waiting for children to be stopped
* handle watch of other actors
* exception from unstash
* exception from first setup
* merge RestartSupervisor and BackoffSupervisor
* API change: restartWithLimit => restart.withLimit
* remove unused PreStart
* docs
* move BubblingSample to separate class
* fix: fail after more than limit in restart.withLimit when deferred factory throws
* match case RestartOrBackoff instead
2019-01-17 16:48:22 +01:00
Seeta Ramayya
67902d82bc Corrected documentation (#26159) 2019-01-17 12:16:52 +01:00
Patrik Nordwall
f4defb139b
use receiveOne instead of receiveMessageType, #25914
* use receiveOne instead of receiveMessageType, #25914

* when the type is the same as the probe's type

* formatting

* rename receiveOne to receiveMessage

* rename receiveN to receiveMessages

* have to use different name in javadsl so that became receiveSeveralMessages
2019-01-15 09:23:30 +01:00
hepin1989
998c5a9285 Formatting java codes with sbt-java-formatter. 2019-01-12 04:00:53 +08:00
Arnout Engelen
d274e039f9
Various scala-2.13.0-M5 fixes
fix akka-actor-tests compile errors

some tests still fail though

Fix test failures in akka-actor-test

Manually work arround missing implicit Factory[Nothing, Seq[Nothing]]

see https://github.com/scala/scala-collection-compat/issues/137

akka-remote scalafix changes

Fix shutdownAll compile error

test:akka-remote scalafix changes

akka-multi-node-testkit scalafix

Fix akka-remote-tests multi-jvm compile errors

akka-stream-tests/test:scalafix

Fix test:akka-stream-tests

Crude implementation of ByteString.map

scalafix akka-actor-typed, akka-actor-typed-tests

akka-actor-typed-tests compile and succeed

scalafix akka-camel

scalafix akka-cluster

akka-cluster compile & test

scalafix akka-cluster-metrics

Fix akka-cluster-metrics

scalafix akka-cluster-tools

akka-cluster-tools compile and test

scalafix akka-distributed-data

akka-distributed-data fixes

scalafix akka-persistence

scalafix akka-cluster-sharding

fix akka-cluster-sharding

scalafix akka-contrib

Fix akka-cluster-sharding-typed test

scalafix akka-docs

Use scala-stm 0.9 (released for M5)

akka-docs

Remove dependency on collections-compat

Cherry-pick the relevant constructs to our own
private utils

Shorten 'scala.collections.immutable' by importing it

Duplicate 'immutable' imports

Use 'foreach' on futures

Replace MapLike with regular Map

Internal API markers

Simplify ccompat by moving PackageShared into object

Since we don't currently need to differentiate between 2.11 and

Avoid relying on 'union' (and ++) being left-biased

Fix akka-actor/doc by removing -Ywarn-unused

Make more things more private

Copyright headers

Use 'unsorted' to go from SortedSet to Set

Duplicate import

Use onComplete rather than failed.foreach

Clarify why we partly duplicate scala-collection-compat
2019-01-11 12:27:18 +01:00
kerr
cc19367588 More Java getters for akka.actor.AbstractActor.ActorContext #26161 2019-01-09 20:13:56 +01:00
Jeffrey Chung
eeafbff4dc Make it clearer that StreamRefs should be used with Akka Cluster (closes (#26213)
Make it clearer that StreamRefs should be used with Akka Cluster (closes #26173)

Retain the use of "as"
2019-01-08 11:24:33 +01:00
airt
e124d11995 add examples for scan operator #25468 2019-01-04 15:08:54 +01:00
Seeta Ramayya
f8618b24b0 added examples for Stream # actorRef operator. As part of #25468 (#26162) 2019-01-02 17:08:35 +01:00
Seeta Ramayya
1cae9b0d44 25468: added examples for Stream # cycle operator. (#26163) 2019-01-02 15:46:13 +01:00
Martin Grotzke
f3b7d316b2 Document how to observe mocked behavior with typed ActorTestKit #26116 2019-01-02 15:30:55 +01:00
Martynas Mickevičius
f6f4611d4a Two typo fixed in the typed persistence docs (#26168) 2019-01-02 13:24:28 +01:00
kerr
bdc90052aa Update headers from 2018 to 2019 once for all. (#26165)
* Add CopyrightHeader support for sbt-boilerplate plugin.
* Add CopyrightHeader support for `*.proto` files.
* Add regex match for both `–` and `-` for CopyrightHeader.
* Add CopyrightHeader support for sbt build files.
* Update copyright from 2018 to 2019.
2019-01-02 11:55:26 +01:00
Patrik Nordwall
b48938f4a0
Improve default shard rebalancing algorithm, #26012 (#26101)
* Improve default shard rebalancing algorithm, #26012

* Use rebalance-threshold=1 because it will give the best distribution,
  and previous default could result in too large difference between nodes
* Off by one error, difference > threshold vs >=
* Added more unit tests
* Note that in some cases it may still not be optimal, stopping more
  shards than necessary, but a different strategy that looks at more
  than most and least is out of scope for this issue. In practise
  those cases shouldn't matter much.
* Also note that the rebalance interval is by default 10 seconds,
  so typically shards will start up before next rebalance tick.
  It's intentionally a slow process to not cause instabilities by
  moving too much at the same time.
2018-12-21 13:39:41 +01:00
Patrik Nordwall
5f409c17e0 clarify docs of ActorTestKit.stop, #24165 2018-12-21 12:53:18 +01:00
Michael Kholodov
220021b87f Akka-typed-testkit: Provides a way of stopping actors #24165
* Added ActorTestKit#stop method and corresponding tests.
* Added 'Stopping actors' section to the docs
* Stop actor now waits until the actor terminates.
2018-12-21 11:37:34 +01:00
Helena Edelson
d74426a255 Rename akka.actor.typed.ActorContext #25734 (#26146) 2018-12-21 11:17:26 +01:00
kerr
15e2527629 Deprecate resolveOneCS which accept FiniteDuration. (#26067) 2018-12-19 14:54:22 +01:00
RomanIakovlev
4055a42899 Update the typed cluster sharding documentation to use new terminology #26120
EventSourcedEntity instead of PersistentEntity
2018-12-18 15:47:10 +01:00
James Roper
762c9cb019 Async DNS search domain support (#25987)
Fixes #25825

Provides search domain support for Async DNS.

There are two parts here, first is the search domain support itself,
which is relatively straight forward - on lookup, create a list of hosts
to attempt to resolve based on the search domains configuration
(including the host with no postfix), exclude all those hosts that have
less dots than the configured ndots, and then search until you find one
that returns any records. In this case the search domains are applied for
each nameserver attempt, so if a particular nameserver times out, it
won't attempt to search any more domains on that nameserver.

The second part is in actually detecting the system configuration. I've
only implemented partial support here, it reads /etc/resolv.conf, and
nothing else. There are ways to detect it on other platforms, there are
also environment variables that are supposed to be honored on Linux and
other *nix's, but to keep this change manageable, I've focussed on just
supporting the minimum to meet the Kubernetes service discovery use case,
and documented the limitations.
2018-12-17 17:42:20 +01:00
Patrik Nordwall
5deaacbf94 more api may change warnings in Typed docs (#26124) 2018-12-17 17:39:59 +01:00
Helena Edelson
8a44fca087
Typed Distributed Data requires untyped Cluster #25746 (#26074)
Typed Distributed Data requires untyped Cluster [#25746](https://github.com/akka/akka/issues/25746)
2018-12-14 15:53:08 -05:00
Christopher Batey
2c145cd3c3 Clarify migration from old akka management discovery (#26102) 2018-12-13 11:57:59 +01:00
Arnout Engelen
b40d28b885
Fix link to lagom 2018-12-10 15:52:38 +01:00
balteo
24ff2b80e7 Fix broken link to lagom framework (#25844) 2018-12-10 15:51:18 +01:00
Aleksei Molokovskikh
4fe5b1cb59 fixed deprecated method in getting started guide (#26083) 2018-12-10 10:45:24 +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
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
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
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
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
Robert Golusiński
2b7ba8f9f1
remove redundant yet 2018-12-05 13:19:27 +01:00
Helena Edelson
dbfe6f38c7 Rename PersistentBehavior (#25721)
Migrated InternalProtocol with least refactor changes, in the end.
2018-12-05 12:05:59 +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
Patrik Nordwall
00d869724a Remove Deprecated CounterSecureRNG, #25978 (#25979) 2018-12-04 09:50:37 +01:00
Chris
e11b4cf2de Update verbiage on module documentation page (#26018) 2018-12-03 15:07:04 +00: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
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
Jakub Czuchnowski
1d36879e53 Add missing for Custom Stream Processing docs #25940 (#25941) 2018-11-19 10:29:10 +01: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