Commit graph

22038 commits

Author SHA1 Message Date
Patrik Nordwall
11b6065d97
Merge pull request #24586 from akka/wip-TlsTcpSpec-patriknw
fix TlsTcpWithHostnameVerificationSpec when run without tls
2018-02-21 20:44:04 +01:00
ryota-sakamoto
6fa74789ce Exception from receiveRecover should stop the PersistentActor #24192 2018-02-21 17:20:52 +01:00
Patrik Nordwall
9a13704969
Merge pull request #24577 from 2m/wip-fileio-exception-2m
#23951 Fail materialized future of IO stages when stream fails
2018-02-21 13:41:16 +01:00
Patrik Nordwall
f0709774dc
Merge pull request #24023 from akka/wip-23967-stop-idle-patriknw
Stop unused Artery outbound streams, #23967
2018-02-21 12:52:51 +01:00
Patrik Nordwall
d03f177468 fix TlsTcpWithHostnameVerificationSpec when run without tls 2018-02-21 12:36:26 +01:00
Patrik Nordwall
5e80bd97f2 Stop unused Artery outbound streams, #23967
* fix memory leak in SystemMessageDelivery
* initial set of tests for idle outbound associations, credit to mboogerd
* close inbound compression when quarantined, #23967
  * make sure compressions for quarantined are removed in case they are lingering around
  * also means that advertise will not be done for quarantined
  * remove tombstone in InboundCompressions
* simplify async callbacks by using invokeWithFeedback
* compression for old incarnation, #24400
  * it was fixed by the other previous changes
  * also confirmed by running the SimpleClusterApp with TCP
    as described in the ticket
* test with tcp and tls-tcp transport
  * handle the stop signals differently for tcp transport because they
    are converted to StreamTcpException
* cancel timers on shutdown
* share the top-level FR for all Association instances
* use linked queue for control and large streams, less memory usage
* remove quarantined idle Association completely after a configured delay
  * note that shallow Association instances may still lingering in the
    heap because of cached references from RemoteActorRef, which may
    be cached by LruBoundedCache (used by resolve actor ref).
    Those are small, since the queues have been removed, and the cache
    is bounded.
2018-02-21 11:59:18 +01:00
Johan Andrén
650490f68a
Separate Java and Scala typed TestProbes #24542 and #24334 2018-02-21 10:19:02 +01:00
Stefano Bonetti
3ea59b1e76 Adding preMaterialize operator for Source #23894 (#24497) 2018-02-21 15:06:01 +09:00
虎鸣
e44fafd4b7 + stream add collectType operator to Source,SubSource,Flow and SubFlow for javadsl.
add docs for collectType, do mirror it in scaladsl

mima
2018-02-21 14:23:11 +09:00
Patrik Nordwall
39c97c3306
Merge pull request #23828 from akka/wip-artery-tls-patriknw
Artery with TCP/TLS, #24390
2018-02-20 17:32:15 +01:00
Martynas Mickevičius
24fd986aca
#23951 Fail materialized future of IO stages when stream fails 2018-02-20 18:05:08 +02:00
Johannes Rudolph
bbdf3261c4 Describe options for hostname verification and certificates, #24390 2018-02-20 16:06:17 +01:00
Patrik Nordwall
4dab3252bd Add Artery TCP/TLS transport, #24390
* configurable SSLEngineProvider
* ssl configuration
* add internal outgoingTlsConnectionWithSSLEngine and bindTlsWithSSLEngine in stream Tcp
* TLS tests
* update remote security section in reference documentation
2018-02-20 16:06:16 +01:00
Patrik Nordwall
162a1f80a0 Add Artery TCP transport, #24390
* transport config
* TCP specific classes in akka.remote.artery.tcp package
* TcpFraming stage that handle the additional streamId field and length based framing.
  Credit to jrudolph for this clean solution, which made it possible to use same
  envolope header for Aeron and TCP.
* magic first bytes to detect invalid access
* drain SendQueue to deadLetters in postStop
* error handling, restart, inbound and outbound streams
* udp vs tcp in autoSelectPort
* TCP specific flight recorder events
* update reference documentation
2018-02-20 16:06:05 +01:00
Patrik Nordwall
0d222906f4 Prepare Artery for alternative TCP transport, #24390
* Refactoring to separate the Aeron specific things, ArteryAeronUdpTransport
* move Aeron specific classes to akka.remote.artery.aeron package
* move Version to ArterySettings, and describe strategy for envelope header changes
2018-02-20 16:02:57 +01:00
Renato Cavalcanti
c83e4adfea Rolling update config checker, #24009
* adds config compatibility check
* doc'ed what happens when joining a cluster not supporting this feature
* added extra docs over sensitive paths
2018-02-20 15:47:09 +01:00
Roman Filonenko
a4e9881a6f typed Cluster.sharding.spawn fail fast #23708
* fail fast if Typed Cluster.sharding.spawn is called several times with different parameters 
* fix a bug in ClusterShardingImpl.spawnWithMessageExtractor - actually use allocationStrategy param
2018-02-20 14:55:30 +01:00
Martynas Mickevičius
bc4888a60e
Merge pull request #24573 from 2m/wip-too-much-details-2m
Cut the detail level in half
2018-02-20 14:28:36 +01:00
Martynas Mickevičius
39cb013f9f
Cut the detail level in half 2018-02-20 14:10:44 +02:00
Konrad `ktoso` Malawski
8d1feb5a10
fix java documentation snippet by being explicit (#24569)
* fix java documentation snippet by being explicit

* Update FaultHandlingTest.java

* Update FaultHandlingTest.java

* Update FaultHandlingTest.java
2018-02-20 18:07:40 +09:00
Johan Andrén
ba5f26f7bf Link to Vavr sample project (#24570) 2018-02-20 17:20:36 +09:00
Johan Andrén
5fa700ef78 Make stashing timer messages work (#24565)
* Make stashing timer messages work #24557

* Formatting ... ... ...

* Avoid the extra allocation if possible
2018-02-20 10:26:24 +09:00
Johan Andrén
2b8b946bc7 A bit more generous timeouts in RateTransformationDocSpec #24559 (#24564) 2018-02-19 11:19:56 +01:00
Patrik Nordwall
16e6fb9d77
Merge pull request #24521 from svezfaz/actorpublisher-actorsubscriber-docs-cleanup
=doc cleaning up documentation on deprecated actorSubscriber and actorPublisher
2018-02-19 11:19:03 +01:00
Patrik Nordwall
11366ddac5
Merge pull request #24562 from rch/patch-1
Deprecated method used in docs
2018-02-19 10:37:32 +01:00
Martynas Mickevičius
357f5e62a4 #24411 Give a bit more time to the consumers (#24545) 2018-02-19 10:23:08 +01:00
jeremystone
e766207a87 alsoTo eager cancellation #24291 2018-02-19 08:31:13 +01:00
Ryan C. Hill
acbf1ce7b5
Deprecated method used in docs
Updated example code to use the alternative method provided in v2.5.0
2018-02-16 16:15:13 -07:00
Josep Prat
28ae8d4f0e +tkt Provide run method that doesn't canonicalize behavior #24486 (#24487) 2018-02-16 16:14:19 +01:00
Patrik Nordwall
10f651081b
Merge pull request #24531 from chbatey/akka-persistence-recovery-warning
Add warning about AsyncRecovery assumptions c* plugin makes
2018-02-16 14:00:23 +01:00
Nick Aiello
7dde9c374d [#24294] Fix DistributedPubSubMediator not unsubscribing actors from … (#24343)
* [#24294] Fix DistributedPubSubMediator not unsubscribing actors from topics when they terminate.

* Removed rogue "with DeadLetterProbe"

* Update DistributedPubSubMediator.scala
2018-02-16 10:18:57 +09:00
Johan Andrén
14bb878da1
Typed: Renaming deferred to setup #24548 2018-02-15 13:40:26 +01:00
Johan Andrén
cdf36c21f5
Document that a scheduler is needed for standalone typed ask #24219 2018-02-15 13:38:47 +01:00
Rafał Sumisławski
04868da93c Add dispatcher name to names of threads created by AffinityPool (as it is already done for ForkJoin and ThreadPool) #24544 2018-02-14 20:21:21 +01:00
Christopher Batey
eede5533ac
Chunker should only pull if buffer is empty (#24019)
For the current Chunker if the upstream sends larger messages than the
chunk size the buffer can slowly fill up until the app OOMs. Change it
so it only pulls if the buffer is empty
2018-02-14 16:18:58 +00:00
Johan Andrén
d3b625616a
Generate file to use instead of assuming class loader type #23902
Makes the test pass on JDK 9 where the class loader assumption is not correct anymore.
2018-02-14 10:29:53 +01:00
Catalin Ursachi
ccf5d46a58 Add wireTap combinator (#15077) (#23824) 2018-02-13 20:39:00 +01:00
Arnout Engelen
f2e39c7534 Add example of testing actors with subclassing (#24539) 2018-02-13 19:29:30 +01:00
Johan Andrén
3bd3f00c41
Too many Tocks in typed TimerSpec #24360 2018-02-13 18:08:14 +01:00
Konrad `ktoso` Malawski
1cd370be60
=pro fix osgi plugin muting AutomaticModuleName (#24534)
* =pro fix osgi plugin muting AutomaticModuleName

* Revert "=pro fix osgi plugin muting AutomaticModuleName"

This reverts commit a763353ebf102184c17d78b6bf946cdd0ddff23e.

* =pro update osgi plugin, un-break AutomaticModuleName
2018-02-13 17:29:19 +01:00
Richard Imaoka
b3a27d1c9f Add log() in stream-error.md (#24522)
* Add log() in stream-error.md (#23722)
2018-02-12 14:30:54 +00:00
Johan Andrén
cb048457c8
StreamTcpDocSpec: Less race, better error if client fails #24500 2018-02-12 14:42:52 +01:00
Johan Andrén
4cde6e7feb Less fragile way of waiting for stream completion #24501 (#24528) 2018-02-12 14:38:22 +01:00
Christopher Batey
c5c81dc018 Add warning about AsyncRecovery assumptions c* plugin makes 2018-02-12 13:21:08 +00:00
Johan Andrén
5e6662c97c
Make MetricsBasedResizerSpec a bit slower but less GC sensitive #24397 (#24449) 2018-02-12 13:26:14 +01:00
Richard Imaoka
caabfdecfc =doc cluster client: Introduce javadoc and scaladoc directives (#24524) 2018-02-12 11:02:13 +01:00
Albert Serrallé Ríos
7630939b18 Cancel GroupBy when all substreams cancel (#24438) 2018-02-12 09:59:19 +01:00
svezfaz
60f5b9690e cleaning up documentation on deprecated actorSubscriber and actorPublisher 2018-02-10 20:49:23 +00:00
Konrad `ktoso` Malawski
232b4d0d7a
Bump sbt to 1.1.1 (#24517) 2018-02-09 00:46:37 +01:00
James Roper
5696a6d3f3 Changed StreamRefs docs title to RS over the network (#24506) 2018-02-08 13:26:17 +01:00