Commit graph

24575 commits

Author SHA1 Message Date
eyal farago
ccd8481fec
stream: add flatMapPrefix operator (#28380) 2020-02-05 15:37:27 +01:00
Bartosz Firyn
722ea4ff87
Fix typo depredated, change to deprecated (#28572) 2020-02-05 15:09:24 +01:00
Renato Cavalcanti
d3ce370ec5
Merge pull request #28570 from akka/wip-jackson-uuid-patriknw
test Jackson serialization of UUID
2020-02-05 11:04:36 +01:00
Patrik Nordwall
0469a66c2d test Jackson serialization of UUID 2020-02-05 10:12:00 +01:00
Patrik Nordwall
f6bea845ca
update MiMa latestPatch (#28534)
* update MiMa latestPatch

* Even later latest

* exclude jdk9 classes in 2.6.x excludes

* mima exclude for SystemMaterializer.materializer type

Co-authored-by: Johan Andrén <johan@markatta.com>
2020-02-04 15:43:13 +01:00
Scala Steward
b0b39e81e6
Update sbt to 1.3.8 (#28561) 2020-02-04 14:54:12 +01:00
Patrik Nordwall
db6092c701
Merge pull request #28526 from akka/wip-pgp-tty-patriknw
add GPG_TTY instruction
2020-02-04 14:49:24 +01:00
Johan Andrén
289ca787a1
Getting started referred to a package name not present in quickstart (#28549)
* Getting started referred to a package name not present in quickstart

Techhub zip has com.example and g8 template defaults to com.example so let's refer to that instead

* Missing logger ops in one Scala example snippet
2020-02-04 14:41:01 +01:00
Patrik Nordwall
84e88bff02
Merge pull request #28551 from renatocaval/fix-akka-discovery-error-message
Improved error message when loading ServiceDiscovery impl
2020-02-04 14:37:36 +01:00
Renato Cavalcanti
e6c6459499
Fix filter operator example output (#28560)
* fixed filter operator example output

* align filter and filterNot outputs
2020-02-04 14:19:51 +01:00
Patrik Nordwall
a2b29a7219
Merge pull request #28564 from jrudolph/remove-extra-print-stack-trace
stream: remove extra printStackTrace
2020-02-04 14:01:30 +01:00
Johannes Rudolph
a01dfa6201
stream: remove extra printStackTrace 2020-02-04 11:16:34 +01:00
Johannes Rudolph
1fbd1d338f
stream: fail eagerly during SubSink/SubSource materialization (#28492)
This way the stack trace will be more helpful because it contains the stage
that actually triggered the materialization.

Otherwise, we will only fail during `preStart` in the interpreter where the
stage will be failed and the error be propagated through the stream where
it can be hard to figure out what happened.

Also improve the message itself to contain the user provided name of the
sink/source.
2020-02-04 11:04:31 +01:00
Renato Cavalcanti
918b556b0a
Merge pull request #28543 from scala-steward/update/sbt-unidoc-0.4.3
Update sbt-unidoc to 0.4.3
2020-02-03 14:41:35 +01:00
Christopher Batey
0d57c71766
Add paramater documentation for event sourced entities (#28540)
* Add paramater documentation for event sourced entities

Useful for help in IDEs, text taken from the docs.

* whitespace

Co-authored-by: Arnout Engelen <github@bzzt.net>
2020-01-31 16:09:02 +01:00
Renato Cavalcanti
09c0927ca6
Improved error message when loading ServiceDiscovery impl 2020-01-31 15:50:03 +01:00
Patrik Nordwall
a6cc73b447
Artery hostname for client side of TCP connection, #28546 2020-01-31 14:53:51 +01:00
Patrik Nordwall
2677edf930
Merge pull request #28545 from akka/systemMaterializerExplicitReturnType
Explicit SystemMaterializer.materializer return value
2020-01-30 18:57:00 +01:00
Arnout Engelen
6dbbfd53f0 Explicit SystemMaterializer.materializer return value 2020-01-30 12:19:52 +01:00
Scala Steward
c8c0c1ed35
Update sbt-unidoc to 0.4.3 2020-01-29 20:03:40 +01:00
Jacek Ewertowski
97f8991970
Improve akka logging docs. (#28531) 2020-01-29 15:12:03 +01:00
Patrik Nordwall
45ed6eabca
clarify ExecutionContext for whenTerminated operations (#28537) 2020-01-29 11:47:18 +01:00
Patrik Nordwall
3c24fa7dee
Merge pull request #28533 from nvollmar/wip-28532-eventenvelope-unapply-wip
Fixes EventEnvelope unapply
2020-01-28 11:49:13 +01:00
Nicolas Vollmar
3635e78755 Fixes EventEnvelope unapply 2020-01-28 10:30:04 +01:00
Patrik Nordwall
98e5d22914 doc: Mention dispatcher shutdown timeouts (#28527) 2020-01-28 10:21:06 +01:00
Patrik Nordwall
458d4ae546 add GPG_TTY instruction 2020-01-27 13:27:56 +01:00
Johan Andrén
b1699b026e First step of rolling update cluster serlializer no classmanifests (#28514)
* First step of rolling update for cluster serlializer to not use class manifests #13654

* Test coverage

* A bit of mima excludes makes jenkins a happy butler

* Docs mention
2020-01-27 12:58:40 +01:00
Johan Andrén
8d8fa29f47
Examples for zipN, zipWithN and zipAll (#28510) 2020-01-27 09:50:34 +01:00
Yakiv Yereskovskyi
a614f0bee7 allow Sink.queue concurrent pulling (#27352)
* allow Sink.queue concurrent pulling

* replace methods with default parameters on two overloaded methods to pass binary compatibility check :/

* replace ⇒ with =>

* reformat

* add javadsl

* fix PR comments and add concurrency to Sink.queue

* fix merge after auto resolving

* duplicate changes to javadsl

* revert source changes

* add graceful terminations

* clean up tests

* optimize imports

* trigger rebuild

* cover the case when materializer shutdown before async callbacks were processed

* vars to vals; fix require messages

* disable compatibility check for @InternalApi private[akka] class
2020-01-24 21:33:39 +01:00
Johan Andrén
83452be2ff
Cut the sample using stashing in an EventSourcedBehavior for now #23853 (#28512)
It's not actually shown in docs anywhere, only exists for Scala, and has questionable semantics.
If #24473 is ever revived I guess we should/can reintroduce the sample, include in docs, make it work etc.
2020-01-24 16:33:03 +01:00
Helena Edelson
a101ce4833 Update aeron-client, aeron-driver to 1.25.1 and Agrona to 1.3.0 (#28516) 2020-01-24 15:31:05 +00:00
Christopher Batey
0d7d6f6411 Add kafka to sharding example project (#28518) 2020-01-24 13:14:02 +01:00
Johannes Rudolph
029a2a8460 docs: fix leader action transition descriptions (#28306)
* and more clarification about member states
2020-01-24 11:16:07 +01:00
Patrik Nordwall
35259f1d16
Merge pull request #28467 from jrudolph/eager-filter
stream: filter out elements without demand
2020-01-23 20:35:37 +01:00
Christopher Batey
a0268682de Add distributed workers to examples (#28506) 2020-01-22 13:57:07 +01:00
Johannes Rudolph
c39dd6506e
stream: filter out elements without demand
This will also mean that completion will not be blocked by elements that
will later be filtered out.

One particular use case of that would be a kind of partitioning use case,
where you put several streams behind a broadcast and each consumer will filter
out elements not handled there. In that case, the broadcast can get head-of-line
blocked when one of the consumers currently has no demand but also wouldn't
have to handle any elements because they would all be filtered out.
2020-01-22 10:26:46 +01:00
Patrik Nordwall
b30f8746d3
Merge pull request #28470 from akka/wip-28416-region-reg-patriknw
Shard region registration to more potential oldest, #28416
2020-01-22 08:40:01 +01:00
Arnout Engelen
ef08d9fe5c Don't warn about discarded return values (#28403)
* Since we have and use many API's where the return value can be safely
ignored.
* akka-cluster-sharding also does implicit widening
2020-01-21 20:47:18 -08:00
Patrik Nordwall
a9750b3c37
Merge pull request #28483 from helena/failure-joinconfig-checker-sharding
Failed: JoinConfigCompatCheckerClusterShardingSpec #28477
2020-01-21 20:04:24 +01:00
Christopher Batey
cbf9f71c32
External shard allocation strategy (#28211) 2020-01-21 16:08:51 +00:00
Patrik Nordwall
cbde44fc48
Merge pull request #28496 from akka/managingBlockingExample
Update 'managing blocking' examples
2020-01-21 12:54:15 +01:00
Yury Gribkov
004581a399 Rename RecoveryPermitter.pending for telemetry (#28503) 2020-01-21 09:15:30 +01:00
Patrik Nordwall
6072f6d263
Fix memory leak of restarting Artery outbound stream, #28390 (#28478)
* Fix memory leak of restarting Artery outbound stream, #28390 (#28407)

* If the handshake doesn't complete the Promise in AssociationState was
  not completed and each new restarted stream added future callback to
  it OutboundHandshake stage. Those references are kept in the promise
  and therefore old OutboundHandshake (and probably entire stream) couldn't
  be garbage collected.
* Using own notification mechanism to have control of listener deregistration
  from postStop instead of using Promise/Future.
* Trying to create new Promise after failure/restart would be difficult due
  to that the same AssociationState Promise is accessed from several outbound
  streams, all possibly restarted individually. Therefore easier to cleanup
  from postStop.

(cherry picked from commit 3b7e6095df25d2551c122944f08f869255fb20ca)

* move mima filter to 2.6.1.backwards.excludes
2020-01-20 15:33:44 +01:00
Eric Loots
a320475e86 Fix typo in Akka Typed Style guide (#28499) 2020-01-20 13:28:34 +01:00
Scala Steward
c7e03584a6 Update sbt to 1.3.7 (#28495) 2020-01-20 10:29:11 +01:00
Johan Andrén
fc0c98e17a
Support cancellation propagation in StreamRefs #28317 2020-01-20 10:28:26 +01:00
Helena Edelson
90d1f72f38 Failed: JoinConfigCompatCheckerClusterShardingSpec #28477 2020-01-17 11:16:37 -08:00
Patrik Nordwall
41ef4bb66e
Merge pull request #28473 from limansky/scalatest310
Co-authored-by: Johannes Rudolph <johannes.rudolph@gmail.com>
2020-01-17 16:57:19 +01:00
Arnout Engelen
3dc20796ca Update 'managing blocking' examples
Having only one blocking actor is not enough, since then only one dispatcher
thread will be blocked at a time.
2020-01-17 15:35:05 +01:00
Mikhail Limansky
feb9499431 Update after merge 2020-01-17 16:56:15 +03:00