Commit graph

23610 commits

Author SHA1 Message Date
Arnout Engelen
af3ee37d6c
Option to target system JDK instead of JDK8 (#27083)
Inspired by the proposal by @nvollmar in 0940dfc
2019-06-17 16:55:54 +02:00
Patrik Nordwall
51789515f2
Merge pull request #27144 from akka/bundling
Consolidate 'fat jar' docs
2019-06-17 13:05:15 +02:00
Patrik Nordwall
4f97435787
Merge pull request #26526 from hepin1989/create-method
Add a create method with context and namePrefix to ActorMaterialize‘s Java API.
2019-06-17 12:57:26 +02:00
hepin1989
48fe57a3f7 Add a create method with context and namePrefix to ActorMaterializer's Java API. 2019-06-16 13:43:07 +08:00
franciscolopezsancho
ebe272212d changing logging error as previous wasn't proper english (#27138) 2019-06-14 14:12:48 +02:00
Arnout Engelen
1177afe887
Consolidate 'fat jar' docs (#24248)
This moves the Maven documentation from the 'configuration' section to the
'deploy' section, and adds documentation for Gradle.

A further improvement would be to split up the current 'deploy' docs and
separate 'bundling' from 'deploying', but that is for a future PR.
2019-06-14 11:30:53 +02:00
Patrik Nordwall
beaa80b773
Merge pull request #26813 from akka/wip-26709-ask-ExpectingReply-patriknw
Type inference for EntityRef.ask, #26709
2019-06-14 11:18:26 +02:00
Patrik Nordwall
af525fd82a
Make Artery connect failure logging less verbose, #26865 (#27073)
* silence "Restarting graph due to failure" logging by RestartFlow, #26865
* only log first error in connectionFlowWithRestart as warning and then debug
* avoid double logging of connection refused
* mima
2019-06-14 11:17:16 +02:00
Christopher Batey
31def7049a Make Behaviors.intercept a factory () => BehaviorInterceptor, #26728 (#27102) 2019-06-14 11:16:12 +02:00
Patrik Nordwall
edbe7d08fc
Merge pull request #27141 from chbatey/migration-entity-ref
Fix entity ref link in migration guide
2019-06-14 11:05:47 +02:00
Patrik Nordwall
9e2ea2579b Type inference for EntityRef.ask, #26709
* move AccountExample to Sharding, to be able to test with EntityRef etc
* add tests for AccountExample
* for javadsl there is a problem
* explicity replyTo type solves javadsl issue
* use EventSourcedEntity.withEnforcedReplies
* try replyTo with super type AccountCommandReply
* Reply <: AccountCommandReply
* replace lambda with method (constructor) reference
2019-06-14 10:16:33 +02:00
Christopher Batey
dd13f559b8 Fix entity ref link in migration guide 2019-06-14 08:58:26 +01:00
Patrik Nordwall
beea76902e cross release again (#27140) 2019-06-14 08:57:41 +01:00
Christopher Batey
a871176fd6 Use Duration in javadsl.EntityRef.ask (#27098)
Refs #26812
2019-06-14 09:17:19 +02:00
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