Commit graph

22901 commits

Author SHA1 Message Date
Patrik Nordwall
bd2cc02eaa
Towards stable APIs of akka-discovery (#26172)
* replaced case classes to make it easier to evolve those
* remove ResolvedTarget.apply with 2 parameters
  * because it InetAddress.getByName may perform blocking DNS lookup
2019-01-07 16:27:32 +01:00
Patrik Nordwall
4bf896d865 rename timeout to delay in startSingleTimer (#26154) 2019-01-07 15:44:04 +01:00
Seeta Ramayya
75713c3469 Missing Java API: Source.empty 2019-01-07 15:02:24 +01:00
Patrik Nordwall
2af9b6bd35 remove unused Command type param in EffectFactories (#26152) 2019-01-07 14:46:06 +01:00
kerr
0848a5c02c Import akka.actor as untyped but not a. (#26079) 2019-01-07 14:45:51 +01:00
Patrik Nordwall
c8e6500f7c
Merge pull request #26202 from akka/wip-25824-stashing-pipeToSelf-patriknw
stashing and pipeToSelf, #25824
2019-01-07 09:58:30 +01:00
Patrik Nordwall
76caf26dc2 stashing and pipeToSelf, #25824 2019-01-04 16:24:22 +01:00
Helena Edelson
dbd1b78623
Add JoinConfigCompatChecker for in Typed #25667 (#26174)
[#25667[(https://github.com/akka/akka/issues/25667)
2019-01-04 07:04:12 -08:00
airt
e124d11995 add examples for scan operator #25468 2019-01-04 15:08:54 +01:00
Patrik Nordwall
a8a443abec
Merge pull request #26170 from akka/wip-adopt-jdk-travis-patriknw
Use Adopt JDK 8 in Travis
2019-01-04 14:19:19 +01:00
Dale Wijnand
1c370c1282 Add pipeToSelf to typed ActorContext #26199
Implemented in terms of AdaptMessage, which makes sure to map the values on the actor's thread, in Scala.
2019-01-04 10:04:30 +01:00
Seeta Ramayya
f8618b24b0 added examples for Stream # actorRef operator. As part of #25468 (#26162) 2019-01-02 17:08:35 +01:00
Arnout Engelen
6cca1a0ee3
Don't be too clever with the copyright year (#26169) 2019-01-02 16:21:01 +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
Patrik Nordwall
a313ee2fb5 Use Adopt JDK 8 in Travis 2019-01-02 13:56:33 +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
Patrik Nordwall
5621899bb6 unidoc genjavadoc doesn't work with sbt 1.2.7 yet (#26150) 2018-12-21 12:01:44 +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
Patrik Nordwall
6d6ac21f30
Merge pull request #26142 from nvollmar/wip-26141-fix-backoff-supervisor
Fixes final stop message handling #26141
2018-12-21 11:17:51 +01:00
Helena Edelson
d74426a255 Rename akka.actor.typed.ActorContext #25734 (#26146) 2018-12-21 11:17:26 +01:00
Patrik Nordwall
cc738def48
Merge pull request #26147 from marcospereira/patch-1
Cross run MiMa when releasing
2018-12-21 11:14:29 +01:00
Marcos Pereira
03e4ffb3d1
Cross run MiMa when releasing
This ensures the binary compatibility will run for all Scala 
versions that are used to do the release.
2018-12-20 17:41:53 -05:00
Helena Edelson
408fab3313
Fix compiler warnings in akka-remote, akka-actor-typed. (#26139)
Fix compiler warnings in akka-remote, akka-actor-typed. (#26139)
2018-12-20 09:10:54 -08:00
Nicolas Vollmar
82379893f3 Fixes final stop message handling #26141 2018-12-20 07:38:24 +01:00
kerr
15e2527629 Deprecate resolveOneCS which accept FiniteDuration. (#26067) 2018-12-19 14:54:22 +01:00
Karel Čemus
e8403f0493 Slf4jLogger expects also null as a marker to support Warning4 events (#26055) 2018-12-19 12:07:42 +01:00
Renato Cavalcanti
2644b0e463 swap config and DNS in aggregate example (#26131) 2018-12-19 11:41:04 +01:00
mszczygiel
10e985526d improved message in case all DNS resolvers fail #26097 2018-12-19 11:40:28 +01:00
Renato Cavalcanti
5bcfbc556c removes warning about shadowed java.io.File (#26134) 2018-12-19 11:39:09 +01:00
kerr
86a9595bf0 Add dedicated exception when try to stop self with ActorContext#stop in Akka typed. (#26081) 2018-12-19 09:55:04 +01:00
Tim Moore
c2dd5ef759 Refactor PersistentActorJavaDslTest (#25728)
* Move empty state and increment logic into the State class

* Improve types in tapPersistentActor

* Extract CounterBehavior class

Tests override functionality as needed to make assertions.

* Use singleton enum pattern from Effective Java

This ensures that serialization/deserialization is handled correctly.

* Extract command handler methods from lambdas

* Inline special event values

This makes it easier to understand what it's doing.
2018-12-18 21:42:28 +01:00
Arnout Engelen
bf3bc4d6e1
Remove CallerSensitive (#26112)
Having this file at all was a workaround for a problem with building on jdk9
for jdk8, but I can no longer reproduce this problem.

See also https://github.com/akka/akka/pull/25326
2018-12-18 15:56:09 +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
Arnout Engelen
81b499cc7b
Scalafix followup:different fix alias on different sub projects with packages ignore support. (#26084)
* Setup different fix alias on different sub projects and add support to ignore dedicated packages when do scalafix.

Because some sub projects does not enable the MultiNode plugin.

Add ignore packages support for scalafix.

* Run scalafix to remove unused imports again.

* Add `reload` to `fixall` and `fix` command alias.
2018-12-17 17:40:45 +01:00
Patrik Nordwall
5deaacbf94 more api may change warnings in Typed docs (#26124) 2018-12-17 17:39:59 +01:00
hepin1989
41f70ea849 Add reload to fixall and fix command alias. 2018-12-17 21:10:11 +08:00
hepin1989
c38a5dcf9c Run scalafix to remove unused imports again. 2018-12-17 21:10:11 +08:00
hepin1989
746d0adb45 Setup different fix alias on different sub projects and add support to ignore dedicated packages when do scalafix.
Because some sub projects does not enable the MultiNode plugin.

Add ignore packages support for scalafix.
2018-12-17 21:10:11 +08:00
Adrien Mannocci
82dea881ce Optimize compact during framing (#25902) 2018-12-17 12:46:38 +01:00
Helena Edelson
7e614a595f
Fix compiler warnings akka-actor (#26095)
[# 26089](https://github.com/akka/akka/issues/26089)
2018-12-14 17:48:08 -05: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
Patrik Nordwall
567f8a15e0
Merge pull request #26073 from hepin1989/patch-8
Add description about default method parameters.
2018-12-12 10:29:00 +01:00
Dávid István Bíró
3a6e539ce3 Fix log args to actually show the forwarded message (#26053)
* Fix log args to actually show the forwarded message

* remove message from forwarding log
2018-12-12 10:27:24 +01:00
Josep Prat
a31964475e Add forgotten expectNoMessage method in StreamTestKit (#26070)
* Add forgotten `expectNoMessage` method in StreamTestKit

As discovered during https://github.com/akka/akka-http/pull/2292#discussion_r239473817 the parameterless version of `expectNoMessage` in StreamTestKit is missing.
2018-12-12 10:25:29 +01:00