Commit graph

591 commits

Author SHA1 Message Date
drewhk
615323a5ec Merge pull request #17378 from drewhk/wip-17355-no-case-class-for-settings-drewhk
!str #17355: Don't use case classes for settings
2015-05-07 18:38:17 +02:00
drewhk
27e37cd2fc Merge pull request #17410 from drewhk/wip-17407-mapAsync-resume-bug-drewhk
=str #17407: MapAsync should pull when failed futures free up space
2015-05-07 18:12:57 +02:00
Endre Sándor Varga
e0d078c676 !str #17355: Don't use case classes for settings 2015-05-07 15:33:35 +02:00
drewhk
8704e4a60b Merge pull request #17375 from drewhk/wip-17123-mat-method-name-consistency-drewhk
!str #17123: Make materialized value handling method names consistent
2015-05-07 15:25:17 +02:00
Endre Sándor Varga
7f6a67a5c0 =str #17407: MapAsync should pull when failed futures free up space 2015-05-07 15:05:29 +02:00
Endre Sándor Varga
7ad4fdc3ce !str #17123: Make materialized value handling method names consistent 2015-05-05 12:42:41 +02:00
Endre Sándor Varga
6ba5c0b4c6 =str #17351: Fix pushAndFinish improper stage termination 2015-05-05 11:57:17 +02:00
Konrad Malawski
2ba44464dc Merge pull request #17324 from ktoso/wip-17323-actorRefSource-better-completion-handling-ktoso
=str #17323 Source.actorRef now emits buffered els before completion
2015-04-30 13:13:18 +02:00
Roland Kuhn
55e1d71eea !str #17327 use curried methods for mapAsync 2015-04-28 17:40:45 +02:00
Konrad Malawski
4ba11177ba =str #17323 Source.actorRef now emits buffered els before completion 2015-04-28 10:59:29 +02:00
Konrad Malawski
ed51c860e2 Merge pull request #17162 from ktoso/wip-logging-streams-ktoso
Logging with log() stage for streams
2015-04-24 15:39:57 +02:00
Konrad Malawski
f2b757df51 +str #17162 add log() stage for simple logging in Flows
+ with javadsl
+ allows configuring log levels
+ allows turning off logging of certain actions completely
+ cookbook adjusted to show this instead of manual PushStage
- PENDING: preStart based impl will be faster, coming soon
2015-04-24 15:37:39 +02:00
Patrik Nordwall
676c8a17b8 Merge pull request #17297 from akka/wip-17031-tcp-http-symmetry-patriknw
!str #17031 Change to host and port params, rename StreamTcp to Tcp
2015-04-24 15:25:14 +02:00
Konrad Malawski
dea9c5a24a Merge pull request #17302 from akka/wip-move-boilerplate-functions-∂π
move boilerplate FunctionN into akka.japi.function package
2015-04-24 15:12:34 +02:00
Roland Kuhn
5eb62f0a81 move boilerplate FunctionN into akka.japi.function package
This is a temporary solution until the classes are added to akka-actor.
2015-04-24 14:35:41 +02:00
Martynas Mickevičius
eb4cb47762 Merge pull request #17241 from 2m/wip-graphbalancespec-robustify
=str #17176 do not check for arbitrary conditions that depends on thread scheduling
2015-04-24 15:30:43 +03:00
Patrik Nordwall
1595a8a911 !str #17031 Rename StreamTcp to Tcp 2015-04-24 14:13:54 +02:00
Patrik Nordwall
07f299a1e0 !str #17031 Use host and port instead of InetSocketAddress
* as convenience in bind and outgoingConnection
2015-04-24 14:12:43 +02:00
drewhk
a44f8b42e2 Merge pull request #17296 from drewhk/wip-17254-use-shapes-when-possible-drewhk
+str #17254: Accept graphs instead of Flow/Source/Sink etc.
2015-04-24 14:05:12 +02:00
Endre Sándor Varga
d73f78dcbf +str #17254: Accept graphs instead of Flow/Source/Sink etc. 2015-04-24 13:14:00 +02:00
Martynas Mickevičius
b1431313e5 =str #17176 do not check for arbitrary conditions that depends on thread scheduling 2015-04-24 13:32:16 +03:00
Konrad Malawski
0aecf21c7a =str more robust dispatcher checking in FileSource specs 2015-04-24 12:27:48 +02:00
Martynas Mickevičius
85bd6fa618 =str fix compilation issue after #17238 merge 2015-04-24 13:06:58 +03:00
Roland Kuhn
874bb12128 Merge pull request #17285 from akka/wip-17277-akka.japi.function-∂π
!str #17277 remove akka.stream.javadsl.japi.WithVariance
2015-04-24 11:50:10 +02:00
Martynas Mickevičius
8e2cc3e70f =str #17089 stream testkit 2015-04-24 12:25:54 +03:00
Roland Kuhn
354a8e3a41 !str #17277 remove akka.stream.javadsl.japi.WithVariance
sadly we forgot to also move the boilerplate-generated FunctionN and
ProcedureN into akka-actor, so they are still in
akka.stream.javadsl.japi.
2015-04-24 11:05:11 +02:00
Roland Kuhn
4132e026ec refactor SslTlsActor and stop it reliably
- this also discovered two omissions in the Transfer infrastructure:

  - inputsAvailableFor should be completed when the input is cancelled
  - demandAvailableFor should be completed when the output is errored

also switch off tracing for SslTls—we don’t want this on in production
2015-04-24 10:40:21 +02:00
Konrad Malawski
089760e4e5 Merge pull request #17273 from ktoso/wip-stream-io-implicits-ktoso
+str #15588 Additional way of using IO sink/source
2015-04-23 23:00:28 +02:00
Konrad Malawski
337850919e +str #17284 allows deciding to stop after signaling terminal or not 2015-04-23 21:42:18 +02:00
Patrik Nordwall
f4703d8916 =str #16986 Handle early cancelation issue
* if downstream cancels before subscription from upstream is
  received the cancel was not propagated to upstream, the
  actor was stopped too early
2015-04-23 20:00:13 +02:00
Patrik Nordwall
f930bcdda8 =str #15191 Verify that stage actors are stopped
* found one bug of too early actor stop and thereby missing cancel of upstream,
  in fan-in tests ""work with one immediately failed and one nonempty publisher"
2015-04-23 20:00:12 +02:00
drewhk
2152340ba8 Merge pull request #17280 from drewhk/wip-16940-shallow-layout-copy-drewhk
=str #16940: Implement shallow copy for stream layouts
2015-04-23 19:37:04 +02:00
Konrad Malawski
cebd9bf1ae +str #15588,#17229 Java 6 Synchronous File Sink / Source
These are synchronous implementations, because we need to be Java 6
  compatible while developing on 2.3.x. However asynchronous
  implementations using AsynchronousFileChannel will come soon for JDK7
  users.

+ ActorPublisher/Subscriber now manage stopping of the actor
+ added documentation on configuring dispatcher for File IO
+ properly handle if source file does not exist
+ file sink / source come with default io dispatcher
> verified no actors are leaking
> exceptions are caught and onErrored properly
+ moved files to akka.stream.io
+ Added OutputStreamSink and InputStreamSource
2015-04-23 18:15:10 +02:00
Endre Sándor Varga
82a7f13a02 =str 16940: Implement shallow copy of layouts 2015-04-23 18:00:01 +02:00
Roland Kuhn
616838a738 +str #15833 TLS with session renegotiation 2015-04-23 15:53:52 +02:00
Patrik Nordwall
f5472a5581 Merge pull request #17234 from akka/wip-15707-source-sink-names-patriknw
=str 15707 Define default names for sources and sinks
2015-04-23 13:23:29 +02:00
Patrik Nordwall
2a975bfb35 =str #16986 Fix memory leak in PrefixAndTail when using Sink.publisher
The problem was reproduced with the TCK PrefixAndTailTest
required_spec313_cancelMustMakeThePublisherEventuallyDropAllReferencesToTheSubscriber
The tck subscriber was still referenced. Profiling revealed that the
root cause was the VirtualPublisher that holds a reference to the
realPublisher, which was MultiStreamOutputProcessor$SubstreamOutput,
which had the reference to the subscriber. The VirtualPublisher
is created by the Sink.publisher in the test, and the test holds
on to that VirtualPublisher reference.

The solution is to null out realPublisher field in the VirtualPublisher.

The old workaround with the NullSubscriber was removed.

Also made Sink.publisher reject additional subscribers.
2015-04-21 16:11:23 +02:00
Patrik Nordwall
373f1acf3a =str 15707 Define default names for sources and sinks
* Not intended to close the ticket, but improve the situation somewhat
  by defining default names of all sources and sinks.
* The stage names (actor names) are still rather weird

For example the following

    Source.single(1).named("aa")
      .map(identity).named("bb")
      .map(identity).named("cc")
      .runWith(Sink.publisher)

is materilaized with names:
flow-1-0-cc-bb-aa-singleSource : akka.stream.impl.PublisherSource@1787f2a0
flow-1-1-cc-bb-map : Map(<function1>,OperationAttributes(List(Name(map))))
flow-1-2-cc-map : Map(<function1>,OperationAttributes(List(Name(map))))
flow-1-3-publisherSink : PublisherSink

but that is out of scope for this commit
2015-04-20 21:04:03 +02:00
Patrik Nordwall
c6404d3e44 !str #17189 Add withAttributes and named to Graph
* Remove optional attributes parameter in favor of withAttributes
* Overload explosion when trying to add attributes to ZipWith.
* Aligned with Flow and Source.
2015-04-17 11:31:32 +02:00
Patrik Nordwall
00033313e0 !str #16951 Unify scaladsl and javadsl OperationAttributes
* Move actor specific attributes to ActorOperationAttributes
2015-04-16 14:16:01 +02:00
Konrad Malawski
9fd425021b Merge pull request #17195 from akka/wip-17191-mapAsyncUnordered-termination-∂π
=str #17191 mapAsyncUnordered shall terminate after resume
2015-04-14 14:34:47 +02:00
Roland Kuhn
7681c557f7 =str #17191 mapAsyncUnordered shall terminate after resume 2015-04-14 12:41:34 +02:00
Patrik Nordwall
9c40b543bd Merge pull request #17175 from akka/wip-16957-actor-creation-patriknw
=str #16957 Refactor actor creation api for sinks and sources
2015-04-14 11:42:51 +02:00
Patrik Nordwall
4fcd3d0392 =str #16957 Refactor actor creation api for sinks and sources
* also solves #16952, dispatcher for ActorPublisher
2015-04-14 11:02:33 +02:00
Roland Kuhn
78fb33be32 =str #17157 indicate right input in ReadPreferred 2015-04-14 08:55:39 +02:00
Patrik Nordwall
b69988c190 !str #16937 Remove section, in favor of via and separate flow 2015-04-10 17:34:29 +02:00
Mathias
85c0571620 !str #17039 change default materialization placeholder type from Unit to Any 2015-04-10 15:10:42 +02:00
Konrad Malawski
3b23d84788 Merge pull request #17146 from ktoso/wip-javadsl-numbered-ktoso
+str #17108 adds arity-numbers to javadsl for nicer compile errors
2015-04-10 14:52:00 +02:00
Konrad Malawski
d6b6220a5d +added comments to all templates 2015-04-10 14:51:40 +02:00
Patrik Nordwall
f4ed62b84c !str #16520 Add ActorRefSource
* and rename the factory for ActorPublisherSource,
  from Source.apply to Source.actorPublisher

* including internal buffer, with OverflowStrategy

* support to complete/fail stream
2015-04-10 13:53:15 +02:00