Commit graph

957 commits

Author SHA1 Message Date
Charies Gavin
fa1643f949 Optimize Document Content (#27050) 2019-06-03 09:46:37 +02:00
Alex Afanasev
d3e7a90fb3
typo 2019-06-02 14:26:11 +03:00
Corey Auger
f0212f905a fix typeo 2019-05-31 15:13:56 -07:00
Enno Runne
b64e4c48c7 Update links of moved modules to doc.akka.io [skip ci] 2019-05-31 16:17:02 +02:00
Arnout Engelen
eca459e461 Include fan-out operators in the operator index (#27028) 2019-05-31 12:56:25 +02:00
Christopher Batey
6754bf7f73 Remove JavaTestkit (#27022)
* Remove JavaTestKit

* mima

* Also remove Caching partial function

* Formatting

* Update akka-docs/src/main/paradox/project/migration-guide-2.5.x-2.6.x.md

Co-Authored-By: Arnout Engelen <github@bzzt.net>
2019-05-29 15:45:20 +02:00
Christopher Batey
3888de23ed Remove ApiMayChange from coordination module (#27026)
Note that it will be fully stable in 2.6.0 so no guarantees for milestones before that.

* remove api may change from sharding lease settings
* mima
* Remove settings from module
2019-05-29 15:41:16 +02:00
Christopher Batey
37f42d3220 Remove API may change from akka typed (#27027)
Note that it will become fully stable in 2.6.0 so this doesn't mean that there will be no more API changes.

* Remove from event sourced behavior
* Remove api may change settings from typed modules
* Dont check mima for typed until 2.6
2019-05-29 15:38:14 +02:00
Christopher Batey
96eed177dc
Make netty and aeron dependencies optional (#27017)
* Make netty and aeron dependencies optional
* Include agrona as a mandatory dependency (used in compression tables)
Refs #25169
2019-05-29 09:50:28 +01:00
Christopher Batey
e7672a9802
Remove various features deprecated since 2.5.0 (#27023)
* Remove various features deprecated since 2.5.0
2019-05-29 07:10:40 +01:00
Eric Loots
31f6170c62 Fix typo in expanded SRV query (#26998)
The "serviceName" is not prepended with an underscore when querying
for a DNS SRV record.
2019-05-27 15:32:57 +02:00
Patrik Nordwall
799e3b6f46
Merge pull request #27013 from akka/wip-26971-typed-scheduler-patriknw
Specific minimal scheduler API for typed #26971
2019-05-24 11:23:02 +02:00
Johan Andrén
604523ba18 Specific minimal scheduler API for typed #26971
* migration guide entry
* ManualTime was making assumptions about scheduler
* Add API compile tests for good measure
* named scheduleAtFixedRate instead of schedule
2019-05-24 10:05:53 +02:00
Patrik Nordwall
6122966fca Jackson serializer as replacement for Java serialization, #24155
* Copied from Lagom, with the following differences
  * Jsonable and CompressedJsonable not included
  * pcollection and guava modules not enabled by default
  * added scala and afterburner modules
* JSON, CBOR and Smile options (different serializers)
* JMH benchmark
* jackson version 2.9.9
* test polymorphism
* serializer for ActorRef
* Address serializer
* FiniteDuration serializer, same as java.time.Duration
* use blacklist from Jackson databind against gadgets
* disallow binding to open ended types, such as java.io.Serializable
* Configurable ObjectMapper ser/deser features
* testing date formats with WRITE_DATES_AS_TIMESTAMPS on/off
* ActorSystemSetup for ObjectMapper creation
  * and possibility to lookup created ObjectMapper via ObjectMapperProvider extension
* createObjectMapper without ActorSystem, needed by Lagom test
* add basic docs
* skip Scala 2.13 for akka-serialization-jackson for now, until the Jackson
  Scala module has been released
2019-05-24 09:03:45 +02:00
Nicolas Vollmar
dd6924465b Use function instead of scala partial function for java api #26970 (#26972)
* Use function instead of scala partial function for java api #26970

* Remove deprecated function #26970
2019-05-24 08:13:22 +02:00
Arnout Engelen
814cfa286c Scala 2.13.0 rc2 (#26967) 2019-05-24 08:11:50 +02:00
Patrik Nordwall
24a3bba135
Add reason for deprecating TypedActor, #25516 (#26993)
* Add reason for deprecating TypedActor, #25516

Co-Authored-By: Helena Edelson <helena@users.noreply.github.com>
2019-05-24 08:07:58 +02:00
Johan Andrén
2051b7ce6b Routers.pool now takes a factory (#26987)
Previously took a Behavior which made it impossible to safely use an
AbstractBehavior with mutable state as routees without using Behaviors.setup
2019-05-23 18:26:17 +02:00
Patrik Nordwall
8d1dcea5d2
ClusterReceptionist using own ddata Replicator #26936 (#26994)
* ClusterReceptionist using own ddata Replicator #26936

* otherwise application configuration, such as role may break it
* creating it as a child actor, path will be same on all nodes
* rolling update from 2.5 not supported
* mention in migration guide

* update migration note about receptionist rolling update
2019-05-23 18:21:34 +02:00
Arnout Engelen
3015f197f1
Typed testing docs: imports and scalatest dependency (#26890) 2019-05-23 14:05:06 +02:00
Patrik Nordwall
0458b5624d
Merge pull request #26980 from helena/deprecate-actor-typedactor
Deprecate akka.actor.TypedActor #25516
2019-05-21 21:06:23 +02:00
Patrik Nordwall
80fd6532e0
Merge pull request #26984 from akka/raboof-patch-1
Discovery: clarify what versions migration applies to
2019-05-21 20:47:59 +02:00
Helena Edelson
593f9501b5 * Deprecate akka.actor.TypedActor #25516 2019-05-21 10:38:38 -04:00
Charies Gavin
7e9366095e Update cluster-metrics.md (#26937)
delete duplicate dependency content
2019-05-21 08:30:17 -04:00
Arnout Engelen
f9f3d2b683
Clarify what versions migration applies to 2019-05-21 10:42:34 +02:00
Nicolas Vollmar
f37f41574d Implements actorRef source variant with backpressure #17610 (#26633)
* Implements actorRef source variant with backpressure #17610

* Small improvements to documentation and source #17610

* Small improvements to test #17610

* Small improvements to implementation and tests #17610

* Adds API for akka-typed #17610

* Adds ack sender and java api for typed #17610
2019-05-20 12:19:44 +02:00
Patrik Nordwall
a2658cc8a0
Merge pull request #26933 from akka/wip-ClusterSingletonProxySpec-patriknw
more classic remoting leftovers
2019-05-17 11:07:29 +02:00
Patrik Nordwall
5db334f2b1
Merge pull request #26893 from jrudolph/jr/remove-fjp-copy
act: remove shaded fork join pool implementation
2019-05-17 10:44:55 +02:00
Renato Cavalcanti
8eef461b7b Adds EventSourcedEntity with EnforcingReplies (#26692) 2019-05-17 09:09:18 +02:00
Martynas Mickevičius
18d970fc8e Add setup operator #26192 2019-05-17 08:54:18 +02:00
Arnout Engelen
7b20b89ce0
Add ByteString.emptyByteString to Java API (#26931)
* Add ByteString.emptyByteString to Java API

To work around https://github.com/scala/bug/issues/11509

* Add note to 2.6 migration document
2019-05-16 14:02:49 +02:00
Patrik Nordwall
ce438637bb Improve performance of DDataShard stashing, #26877
* While waiting for update to comple it will now deliver messages to other
  already started entities immediately, instead of stashing
* Unstash one message at a time, instead of unstashAll
* Append messageBuffer for messages to the entity that we are waiting for,
  instead of stashing
* Test to confirm the improvements
* Fixing a few other missing things
  * receiveStartEntity should process the change before starting the entity
  * lastMessageTimestamp should be touched from overridden deliverTo
  * handle StoreFailure
2019-05-16 11:39:28 +02:00
Patrik Nordwall
71e9bdc262 more classic remoting leftovers
* fix several tests that were using akka.remote.netty.tcp config
* replace akka.tcp with akka in more places
* some doc cross references to remoting.md
2019-05-15 19:34:50 +02:00
Johan Andrén
32af30ee0a Restart hooks ordered list format fix (#26898) 2019-05-13 16:36:51 +01:00
Christopher Batey
c785a1cacd
Fix formatting for supervision.md (#26907)
Bullets not rendered due to missing space
2019-05-13 16:34:17 +01:00
Johan Andrén
cd877e126f
Typed receptionist clashes with the clusterclient receptionist #26848 2019-05-09 12:59:45 +02:00
Arnout Engelen
d3adeb8e0d Clarify docs for Flow.ask generic parameter (#26701)
* Clarify docs for Flow.ask generic parameter

* Java/scala switch

* Throw specific ClassCastException in Flow.ask

Benchmark seems too noisy to draw any real conclusions, but seems not terrible:

```
pre:
Score        Error  Units
[info] AskBenchmark.mapAsync              1    false  thrpt    3  323497.536 ±  38733.024  ops/s
[info] AskBenchmark.mapAsync              1     true  thrpt    3  327001.647 ± 382202.906  ops/s
[info] AskBenchmark.mapAsync              4    false  thrpt    3  457725.806 ±  67583.859  ops/s
[info] AskBenchmark.mapAsync              4     true  thrpt    3  451728.770 ±  74886.315  ops/s

post:
[info] Benchmark              (parallelism)  (spawn)   Mode  Cnt       Score        Error  Units
[info] AskBenchmark.mapAsync              1    false  thrpt    3  338509.183 ± 160893.556  ops/s
[info] AskBenchmark.mapAsync              1     true  thrpt    3  345710.807 ± 505445.147  ops/s
[info] AskBenchmark.mapAsync              4    false  thrpt    3  737276.613 ±   3306.911  ops/s
[info] AskBenchmark.mapAsync              4     true  thrpt    3  697960.417 ± 454528.184  ops/s

[info] Benchmark              (parallelism)  (spawn)   Mode  Cnt       Score        Error  Units
[info] AskBenchmark.mapAsync              1    false  thrpt    3  349120.202 ± 111625.074  ops/s
[info] AskBenchmark.mapAsync              1     true  thrpt    3  440218.776 ± 817228.408  ops/s
[info] AskBenchmark.mapAsync              4    false  thrpt    3  665269.418 ±  10502.449  ops/s
[info] AskBenchmark.mapAsync              4     true  thrpt    3  471313.943 ±  35173.757  ops/s

```

* Formatting, use tag.runtimeClass
2019-05-08 18:57:31 +02:00
Johannes Rudolph
c90f5720b3
act: remove shaded fork join pool implementation
I ran a series of benchmarks and there seem to be different behaviors between the existing and JDK
ForkJoinPools especially on JDK11 and Graal. The results have been really inconclusive about which one would be a benefit overall.

In lack of better evidence, there is not much reason to keep our own copy, so there it goes.

(I couldn't reproduce the high system CPU usage with more recent JDKs that Patrik noticed when
we had it on the table the last time in #22560.)

Fixes #26180.
2019-05-08 17:30:16 +02:00
Barnabás Oláh
40d3fd867b fix broken link for typed snapshots (#26882) 2019-05-08 15:03:06 +02:00
Patrik Nordwall
fbaa9a9500
Merge pull request #26860 from akka/wip-migration-fix-patriknw
cleanup migration guide
2019-05-03 12:37:22 +02:00
Christopher Batey
c65bf2d276 Remove docs for ActorPub/Sub and write persistence query docs as stages (#26844)
* use separate db columns
* Use io dispatcher for sample stage
2019-05-03 12:36:50 +02:00
Patrik Nordwall
669c688055 cleanup migration guide 2019-05-03 11:21:13 +02:00
Patrik Nordwall
2bbf13f707
Run CoordinatedShutdown from ActorSystem.terminate #25213 (#26830) 2019-05-03 10:47:47 +02:00
Johan Andrén
81b1e2ef9b Internal dispatcher to protect against starvation (#26816)
* Allow for dispatcher aliases and define a internal dispatcher
* Test checking dispatcher name
* MiMa for Dispatchers
* Migration guide entry
* No need to have custom dispatcher lookup logic in streams anymore
* Default dispatcher size and migration note about that
* Test checking exact config values...
* Typed receptionist on internal dispatcher
* All internal usages of system.dispatcher gone through
2019-05-02 22:35:25 +02:00
Patrik Nordwall
e34a711adf
Merge pull request #26831 from akka/wip-26190-actorFor-patriknw
Remove remainings of actorFor, #26190
2019-05-02 20:41:13 +02:00
Christopher Batey
e2fafb93d8 Fix config blocks in classic remoting docs (#26851)
* Fix config blocks in classic remoting docs

* Update akka-docs/src/main/paradox/remoting.md

* Update akka-docs/src/main/paradox/remoting.md
2019-05-02 20:20:02 +02:00
Patrik Nordwall
14de568570 Remove remainings of actorFor, #26190
* remove undefinedUid specials related to actorFor
* mention in migration guide
* remove special case for watch of undefinedUid
2019-05-02 19:17:40 +02:00
Johan Andrén
267d96ecf1 Remove Timing operator (#26845)
* Remove Timing operator #26188

* Mima
2019-05-02 19:11:54 +02:00
Arnout Engelen
629383545f
Clean up paradox output (#26759)
Fix some validation problems
2019-05-02 18:23:33 +02:00
Patrik Nordwall
82c761f026
remove Future from StreamRefs mat val, #24372 (#26847) 2019-05-02 16:54:37 +02:00