Commit graph

23596 commits

Author SHA1 Message Date
Patrik Nordwall
57fd889548
remove Jackson afterburner, since no visible improvement #24155 (#27064)
* remove Jackson afterburner, since no visible improvement #24155

* add back timeMessage benchmark

* improve custom mapper test
2019-06-13 21:53:21 +02:00
Christopher Batey
fd1acb9326 Upgrade to Aeron 1.19.1 (#27043)
* Upgrade to Aeron 1.19.1

No mention of on the wire incompatibilities in release notes for
versions 1.15->1.19

* fix compilation issue with new aeron

* Set default publication unblock timeout to 40s

This needs to be bigger than the liveness timeout. Aeron
defaults these to 5seconds and 10seconds. Akka uses 20s
for the liveness so use 40s for the unblock to keep the same
relation between the properties as Aeron has.

* Add publication unblock timeout in sharedmedia driver

* Update akka-remote/src/main/scala/akka/remote/artery/ArterySettings.scala

Co-Authored-By: Helena Edelson <helena@users.noreply.github.com>
2019-06-13 21:44:29 +02:00
Patrik Nordwall
6660e8504a
Remove Jackson Smile format, #24155 (#27105)
* No clear advantage over CBOR
* One less choice for users
* CBOR seems to have a stronger specification and therefore potential
  for wider adoption
* Performance of CBOR is equals to Smile
* Smile can be slightly more compact
  (I think it does more to reduce repeated field names),
  but that might be better to solve with good compression
2019-06-13 17:40:24 +02:00
Christopher Batey
6e93bef605
Enable Jackson for 2.13 (#27136)
* Enable jackson for 2.13

* Fix 2.13 warnings in jackson module
2019-06-13 16:17:04 +01:00
Patrik Nordwall
893bd8b74b
Remove ActorContext parameter from javadsl.ReceiveBuilder, #27120 (#27121)
* Remove ActorContext parameter from javadsl.ReceiveBuilder, #27120

* functional style in javadsl
* in Java it's more practical to have an enclosing class to hold
  initialization parameters and ActorContext
* writing behaviors as pure static methods will be unlikely be used in Java
* it's still possible to write behaviors as static methods by passing
  the context around, in same way as all other things
* better to embrace the enclosing class pattern and therefore remove
  the context parameter from the message handlers
* style cleanup of ChatRoom sample
* migration guide
2019-06-13 16:10:40 +02:00
Patrik Nordwall
f004a574b4 Widen and timers can be used together, #25318 (#27128)
* because timers are not implemented with interceptor any more,
  https://github.com/akka/akka/pull/26650
2019-06-13 06:11:06 -07:00
Christopher Batey
231f0d6bb1 Remove warnings from akka-stream-tests (#27114) 2019-06-13 13:06:02 +02:00
Patrik Nordwall
03588c3036
Merge pull request #27134 from chbatey/missing-typed-api
Remove typed from api may change
2019-06-13 13:01:34 +02:00
Christopher Batey
c9ae6b9d58 Remove typed from api may change 2019-06-13 10:15:57 +01:00
Christopher Batey
a568afd895
Trying this out as the other PR isn't running in travis (#27129)
* Update to Scala 2.13.0

* Update scalatest
2019-06-12 15:02:17 +01:00
Patrik Nordwall
ced96413d3
Merge pull request #27117 from akka/wip-ddata-req-typed-patriknw
Remove request parameter in Typed Replicator messages, #27115
2019-06-12 13:21:38 +02:00
Patrik Nordwall
631ea2faa2 Remove request parameter in Typed Replicator messages, #27115
* Simplifies the API
* Ask can be used instead, with better type safety since
  the request parameter was Any
2019-06-12 11:28:08 +02:00
Patrik Nordwall
5bb83899e7 Remove Behavior.same/empty/etc, #26730 (#27119)
* Removed `Behavior.same`, `Behavior.unhandled`, `Behavior.stopped`, `Behavior.empty`, and `Behavior.ignore` since
  they were redundant with corresponding in Behaviors
* Also moved several of the internal things from Behavior to BehaviorImpl
2019-06-12 09:38:37 +01:00
Patrik Nordwall
6e6b157775
Merge pull request #27092 from akka/wip-26910-prefix-patriknw
Jackson whitelist for deserialization of unbound class, #26910
2019-06-10 12:22:26 +02:00
Patrik Nordwall
d943212517
Merge pull request #27108 from renatocaval/migration-guide-disabling-artery
Being explicit about how to disable artery
2019-06-10 08:58:41 +02:00
Renato Cavalcanti
f7ca0abb24 being explicit about how to disable artery 2019-06-08 10:27:29 +02:00
Patrik Nordwall
047d620c07
Merge pull request #27085 from akka/wip-24874-deadlog-patriknw
re-enable dead letter logging after specified duration, #24874
2019-06-07 17:58:32 +02:00
Patrik Nordwall
c62f428d51 Jackson whitelist for deserialization of unbound class, #26910 2019-06-07 17:52:50 +02:00
Patrik Nordwall
5d22e1e20d
Merge pull request #27056 from akka/wip-24155-dateformat-patriknw
use ISO-8601 date/time format in Jackson serializer, #24155
2019-06-07 17:44:19 +02:00
Patrik Nordwall
41600d3079 use ISO-8601 date/time format in Jackson serializer, #24155
* better for interoperability
* deserialization from both formats are supported
2019-06-07 16:51:44 +02:00
Patrik Nordwall
cca13bdb32
Merge pull request #27067 from akka/wip-24155-compression-patriknw
try Jackson compression impact, #24155
2019-06-07 16:32:00 +02:00
Patrik Nordwall
467d65043e try Jackson compression impact, #24155
* increased the default compress-larger-than to 32 KiB,
  because gzip performance overhead
* support 'off' config value to disable completely
2019-06-07 16:00:02 +02:00
Patrik Nordwall
9a0778435c refactoring, cleanup, and count non-logged, #24874 2019-06-07 15:52:06 +02:00
虎鸣
20466772ce =act re-enable dead letter logging after specified duration
(cherry picked from commit 0caa4f3c22f62e1a65d04dc5b5507f375d7ee794)
2019-06-07 15:42:35 +02:00
Patrik Nordwall
381cb1c5d3
Merge pull request #27068 from akka/wip-24155-conf-patriknw
Support separate conf per JacksonSerializer binding, #24155
2019-06-07 15:33:59 +02:00
Patrik Nordwall
23cbd68430 Support separate conf per JacksonSerializer binding, #24155
* Needed in Lagom to be able to have separate object mappers with different
  config for exernal and internal usage.
* Can also be good to be able to have different config for json and cbor
  serializers, or different for remote messages and persisted events.
* Pass in binding name when creating the serializer if it has a matching
  constructor
* Serialization identifiers loaded from config via the binding name instead
  of class name, for JacksonSerializer.
2019-06-07 14:43:36 +02:00
Patrik Nordwall
7c0be70eea
Doc Jackson annotation gotchas, #24155 (#27091)
* Describe annotations for single param constructor, #24155
* Describe annotations for polymorphic types, #24155
2019-06-07 14:41:01 +02:00
Patrik Nordwall
397b8792f9
Merge pull request #27054 from akka/wip-24155-typed-actorref-patriknw
Jackson serializer typed.ActorRef, #24155
2019-06-07 13:23:09 +02:00
Christopher Batey
6741d76f94 Remove duplicate copyright (#27101)
* Remove duplicate copyright

* Update akka-actor-typed-tests/src/test/java/akka/actor/typed/ActorSystemTest.java

Co-Authored-By: Arnout Engelen <github@bzzt.net>
2019-06-07 09:57:45 +02:00
Christopher Batey
49d7d2fa9b Remove removed modules from AkkaDiscipline plugin (#27099) 2019-06-07 09:57:23 +02:00
Christopher Batey
6d7ad47571 Clarify what to do instead of sending a PoisonPill for ActorRef source (#27090)
* Clarify what to do instead of sending poison pill to actor ref source

* Fix typos in scala/java doc for Source.actorRef
2019-06-07 09:46:34 +02:00
Christopher Batey
508aa9970f
Decrease waiting-for-state-timeout to 2s (#27025)
* Decrease waiting-for-state-timeout to 2s

The timeout can be likely to happen for small clusters when the read
majority needs to go to every node

Refs #26710

* Restructure migration guide for 2.6

Separate out changes that require no user action unless the old
behavior is preferred

* 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-06-06 10:22:26 +01:00
Patrik Nordwall
c4bf933b3c
Merge pull request #27034 from akka/wip-26910-schedule-patriknw
scheduleWithFixedDelay vs scheduleAtFixedRate, #26910
2019-06-05 14:32:57 +02:00
Patrik Nordwall
10d32fceb9 scheduleWithFixedDelay vs scheduleAtFixedRate, #26910
* previous `schedule` method is trying to maintain a fixed average frequency
  over time, but that can result in undesired bursts of scheduled tasks after a long
  GC or if the JVM process has been suspended, same with all other periodic
  scheduled message sending via various Timer APIs
* most of the time "fixed delay" is more desirable
* we can't just change because it's too big behavioral change and some might
  depend on previous behavior
* deprecate the old `schedule` and introduce new `scheduleWithFixedDelay`
  and `scheduleAtFixedRate`, when fixing the deprecation warning users should
  make a concious decision of which behavior to use (scheduleWithFixedDelay in
  most cases)

* Streams
* SchedulerSpec
  * test both fixed delay and fixed rate
* TimerSpec
* FSM and PersistentFSM
* mima
* runnable as second parameter list, also in typed.Scheduler
* IllegalStateException vs SchedulerException
* deprecated annotations
* api and reference docs, all places
* migration guide
2019-06-05 11:38:04 +02:00
Christopher Batey
72cfc2485e
Netty is not optional for multi jvm test kit (#27072)
* Netty is not optional for multi jvm test kit

Netty is used internally and is always loaded even if artery is enabled.
That could be improved but for now netty is needed.

This fixes the Akka HTTP against master build
2019-06-05 10:22:26 +01:00
Patrik Nordwall
937cbaf328
Merge pull request #27074 from akka/wip-26932-timers-logging-patriknw
Remove too verbose debug logging for timers, #26932
2019-06-05 11:19:36 +02:00
Patrik Nordwall
5811f4dcb9 optional instead of provided dependency to akka-actor-typed 2019-06-05 08:32:29 +02:00
Patrik Nordwall
5d8f1fd7f0
Merge pull request #27084 from chbatey/coordination-lease-timeout
Note about lease timeout and JVM pauses
2019-06-05 08:18:54 +02:00
Patrik Nordwall
cdae0f1321
Merge pull request #27088 from chbatey/jackson-doc-tweaks
Minor jackson doc tweaks
2019-06-05 08:11:07 +02:00
Patrik Nordwall
043ed601bc
Merge pull request #27087 from akka/wip-publish-file-patriknw
support akka.build.version=file
2019-06-04 20:11:35 +02:00
Christopher Batey
b777ec6509 Minor jackson doc tweaks 2019-06-04 16:43:54 +01:00
Patrik Nordwall
97b10273a6 support akka.build.version=file
* forward port from release-2.5 branch
* needed for nightly snapshots
2019-06-04 16:41:49 +02:00
Christopher Batey
6205646c17 Note about lease timeout and JVM pauses 2019-06-04 13:43:15 +01:00
Nicolas Vollmar
7075c7ad26 Adding improved warning when jdk8 is not found #26222 (#26789) 2019-06-04 12:19:39 +02:00
Arnout Engelen
f18f2c6559
Add common/io-layer to the ToC (#27018)
Solves part of https://github.com/akka/akka.github.com/issues/606
2019-06-03 16:54:01 +02:00
Helena Edelson
e5d9ce8cd3 Removed overly-enthusiastic-about-scala-sample exclamation point in doc (#27055)
* Removed overly-enthusiastic-about-scala-sample exclamation point in doc.

* And update the sample links while we're at it!
2019-06-03 16:36:42 +02:00
Patrik Nordwall
56eb1e3a7a
Merge pull request #27057 from chbatey/internal-markers
Internal stable markers
2019-06-03 16:34:26 +02:00
Patrik Nordwall
b9fa1e6cfc
Merge pull request #27063 from coreyauger/akka-docs-endpoint-typeo
fix typo
2019-06-03 16:28:16 +02:00
Patrik Nordwall
f051471d2c
Merge pull request #27065 from aafa/patch-1
Minor typo is fixed
2019-06-03 16:24:22 +02:00
Patrik Nordwall
327b17db0d Remove too verbose debug logging for timers, #26932 2019-06-03 15:49:41 +02:00