Commit graph

957 commits

Author SHA1 Message Date
Christopher Batey
9c0cece7de Clarify remembered entities limit is for active entities (#27221) 2019-06-27 16:07:34 +01:00
Arnout Engelen
d758e746d1
Fix paradox anchor references (#27226)
* Fix paradox anchor references

Found by https://github.com/lightbend/paradox/pull/326

* Remove duplicate anchors in paradox docs

Found by https://github.com/lightbend/paradox/pull/328
2019-06-27 16:05:24 +01:00
Patrik Nordwall
50e99e08d8 Use short configurable timeout for expectNoMessage #27212 (#27213)
* Use short configurable timeout for expectNoMessage #27212

* consistent with ActorTestKit in Typed

* fix config
2019-06-26 15:35:20 +01:00
Simon
c932582238 Update deploy.md to avoid Maven generating erroneous tags (#27199)
According to this: https://stackoverflow.com/a/56154292/3715185, adding an id to the execution configuration can help to keep Maven from generating erroneous tags in the effective pom, such as adding a `<resource>` tag to the `ManifestResourceTransformer`.
2019-06-24 13:15:05 +02:00
Pritam Kadam
759673569a Adding WatchedWith effect in akka actor typed testkit #27190 (#27195) 2019-06-21 07:59:32 -07:00
Helena Edelson
59f1a05819
Docs: make rolling restarts/upgrades/updates more prominent, easier to find #27039 (#27186) 2019-06-21 07:33:32 -07:00
Helena Edelson
25b5daa617
Akka Typed Add example of how to java getSelf for persistence typed #27061 (#27196) 2019-06-21 07:30:33 -07:00
Helena Edelson
611e32de91 Disable remote watch and remote deployment outside Cluster (#27126) 2019-06-21 14:15:36 +02:00
Patrik Nordwall
8757e35b7e Don't passivate idle for remembering entities (#27177) 2019-06-21 04:40:25 -07:00
Helena Edelson
37abbea118
Merge pull request #27174 from akka/wip-artery-port-patriknw 2019-06-20 16:12:16 -07:00
yiksanchan
a09d7e27be Fix typo (#27187) 2019-06-20 14:57:37 +02:00
Helena Edelson
eab2b96bd7
Merge pull request #27173 from akka/wip-27172-increase-fd-nodes-patriknw 2019-06-20 04:22:10 -07:00
yiksanchan
a50a06845a Fix grammar (#27185) 2019-06-20 08:18:08 +02:00
Patrik Nordwall
f2dd10ceb9 Mention Artery port 25520 in migration guide 2019-06-18 18:40:03 +02:00
Patrik Nordwall
8752a3acdb increase monitored-by-nr-of-members config, #27172 2019-06-18 18:28:37 +02:00
Charies Gavin
d50674ab49 Doc improvements (#27166)
* cluster-metrics.md - delete duplicate dependency content
* futures.md - delete a redundant parentheses
* event-bus.md - delete redundant descriptions of event-bus
* howto.md - Set keywords in highlighted format
2019-06-18 13:34:45 +02:00
Christopher Batey
21c34361cd Fix error in sharding message flow description (#27161) 2019-06-18 12:01:11 +02:00
Enno
be67fb2ce5 Revise modules listing (#27146) 2019-06-17 18:28:30 +02:00
Patrik Nordwall
51789515f2
Merge pull request #27144 from akka/bundling
Consolidate 'fat jar' docs
2019-06-17 13:05:15 +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
Christopher Batey
31def7049a Make Behaviors.intercept a factory () => BehaviorInterceptor, #26728 (#27102) 2019-06-14 11:16:12 +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
Christopher Batey
a871176fd6 Use Duration in javadsl.EntityRef.ask (#27098)
Refs #26812
2019-06-14 09:17:19 +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
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
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
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
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
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
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
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
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
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
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
Christopher Batey
b777ec6509 Minor jackson doc tweaks 2019-06-04 16:43:54 +01:00
Christopher Batey
6205646c17 Note about lease timeout and JVM pauses 2019-06-04 13:43:15 +01: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
Arnout Engelen
362d734444
Merge Source.apply and Source.from docs (#606) 2019-06-03 16:41:44 +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
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