Commit graph

1590 commits

Author SHA1 Message Date
Nicolas Vollmar
8b8c7355bf Adding loglevel for overflow strategy #25949 (#25976)
* Adding loglevel for overflow strategy (#25949)

* Simplifying overflow strategy api (#25949)

* Adding overflow strategy check for backpressu (#25949)

* Adding log statements to all stages with overflow strategy (#25949)

* Adding excludes for internal api changes (#25949)

* Adding internal api annotations (#25949)

* Adding log source overrides for better logger names (#25949)

* Moving mima excludes for 2.5.18 (#25949)
2018-12-05 13:31:43 +00:00
kerr
e9fb3a020a Make use of scalafix to remove unused import. (#26019)
* =build Add scalafix to remote unused import.

* +build Add file ignore plugin for scalafix which support ignore files.
2018-12-05 08:30:21 +00:00
Johannes Rudolph
b649b4e2d0 Don't throw away error causes in TcpStreamLogic (#25617)
* =str ensure TcpStreamLogic sets cause of StreamTcpException

* =str make sure TcpStreamLogic will report connection errors to localAddressPromise if possible
2018-12-04 15:27:15 +00:00
Nicolas Vollmar
6e21853797 Adding links to wireTap and alsoTo docs (#25808) 2018-11-27 12:08:53 +01:00
Oliver Wickham
b61dbb4e64 Correct minor mistake in StreamRefs.sinkRef scaladoc 2018-11-20 15:47:52 +00:00
Christopher Hunt
86884133ed Avoid memory being retained for groupBy #24758
This commit avoids memory being retained for groupBy. Prior to the commit, closedSubstreams could grow unbounded. This commit includes the size of closedSubstreams when considering to take on a new substream, while retaining the semantics described by its Flow API.
2018-11-09 18:28:44 +01:00
Dale Wijnand
91101d996c Mini cleanup to stream.ActorMaterializer (#25866)
Do it once, instead of in all 4 call sites.
2018-11-05 14:10:54 +01:00
kerr
fafc59b19d update headers to regular comment (#25807) 2018-10-29 05:19:37 -04:00
Jonas Chapuis
b8a9f8b6d7 Zip/Unzip support up to 22 ports (#25742)
* Zip/Unzip support up to 22 inputs/outputs respectively
2018-10-24 09:38:07 -04:00
Arnout Engelen
4b012cc306 Document 'withBackoff' srouce/flow/sink (#25770) 2018-10-15 17:11:33 +01:00
Prasanna J
1e883ced45 Modified iff statements from JavaDSL/Flow.scala (#25785) 2018-10-12 10:07:30 +02:00
Johan Andrén
1d65159923
Merge pull request #25538 from jchapuis/zipLatest
zipLatest and zipLatestWith operators (refs #25392)
2018-10-03 11:28:43 +02:00
Jonas Chapuis
7c264a9748 support up to 22 inputs as per spec and fix race in test 2018-10-02 22:37:14 +02:00
Jonas Chapuis
41c59fdf48 change semantics of ZipLatest slightly to account for pending first tuple with subsequent completion 2018-10-02 18:50:44 +02:00
Konrad Malawski
f9911facc0 +str #24812 fix signature of monitor()
* make monitor be a keep.both by default
2018-09-25 09:29:51 +02:00
Tzu-Chiao Yeh
f06595dd5d Add and reuse example for FileIO stream operator. (#25660) 2018-09-24 17:50:27 +02:00
Jonas Chapuis
a098e0b743 add zipLatest and zipLatestWith operators and graphstages 2018-09-21 09:51:28 +02:00
Patrik Nordwall
63ceb52bbd Use supervision in all places of Source.fromIterator, #25574 (#25601)
* it was noticed in Source.fromIterator depending on where the
  iterator throwed exception
* fromIterator, as many other things, is implemented with
  statefulMapConcat
* supervision was only used for exceptions in onPush and not
  in onPull, added it there also
2018-09-19 18:06:24 +09:00
Gabriel
a679f6f59e Add method foreachAsync to Sink object 2018-09-14 11:42:29 -03:00
Konrad `ktoso` Malawski
38c6276580
=str #25469 stream refs hardened termination via awaiting completion signal (#25561)
* =str #25469 stream refs hardened termination via awaiting completion

* review comments
2018-09-07 16:19:56 +09:00
Johan Andrén
f12f686120
Balance - downstream waits for a response indefinitely #25387 2018-09-05 12:56:42 +02:00
Heiko Seeberger
07dfdef620 QueueSource now drops after completion (#25349) (#25552)
* QueueSource now drops after completion (#25349)

* Resolve Johan's review comments
2018-09-03 14:03:28 +09:00
Patrik Nordwall
b0c9a2be2a add missing mima filters, current version was not updated 2018-08-29 16:32:49 +02:00
Patrik Nordwall
d5b2aea176
Merge pull request #25035 from piotrromanski/wip-fix-math-abs-usage
Handle a negative value returned by Math.abs()
2018-08-27 16:29:32 +02:00
Patrik Nordwall
b9aecb7f5a
Merge pull request #25416 from chbatey/nits
Remove various compiler warnings
2018-08-23 11:36:57 +02:00
Kazuhiro Sera
482eaea122 Fix several minor typos detected by github.com/client9/misspell (#25448)
* Fix several minor typos detected by github.com/client9/misspell

* Revert s/erminater/erminator/ in /ActorSystemSpec
2018-08-21 11:02:37 +09:00
Andrea Peruffo
fddc198178 =str Avoid boxing Attributes in java Optional (#25456) 2018-08-20 23:43:46 +09:00
Christopher Hunt
5be8d975c4 Add some javadsl Flow methods to Source as well (#25476) 2018-08-20 11:24:14 +02:00
Konrad Malawski
729313c66f include mima exclude 2018-08-03 16:31:28 +09:00
Konrad Malawski
a3f50420db make all Take impls use the same implementation (Sink) 2018-08-03 16:31:28 +09:00
Nafer Sanabria
3a92104160 Impl Sink.takeLast operator
Add documentation

reformatting

Address review comments
2018-08-03 16:31:28 +09:00
Christopher Batey
c53809c3b8 Remove various compiler warnings 2018-07-31 17:18:40 +01:00
kenji yoshida
5b3b191bac Remove procedure syntax (#25362) 2018-07-25 13:38:27 +02:00
Carlier Guillaume
70aa175d6c Fix bug in Balance stage when some downstreams pull and close immediately and an another try to pull but wait a response indefinitely #25387 2018-07-24 17:58:42 +02:00
lteqgt
ec7320a3c7 Fix java dsl for createLogLevels (#25337)
* createLogLevels java dsl: remove ability to pass in nulls as default args since it's a bug

* fix scala doc for Java: [[Attributes#logLevelOff]] instead of [[LogLevels.Off]]
2018-07-15 23:26:30 +09:00
Jason Longshore
c36598a93c Fix a typo in BroadcastHub doc (#25346) 2018-07-13 04:23:57 +01:00
Nathan Kleyn
a372ad8b03 Allow named pipes / FIFOs when using FileIO #25328 2018-07-12 08:31:16 +02:00
Patrik Nordwall
d76b27ba3e
Optimize flatMapConcat for single element source, #25241 (#25242)
* Optimize flatMapConcat for single element source, #25241

* Grab the SourceSingle via TraversalBuilder

* Also handle the case when there is no demand

* don't match when mapMaterializedValue and async
2018-07-11 18:19:40 +02:00
James Roper
fdcfa9d714 Ensure NPE is always through when VirtualProcessor.onError(null) is invoked (#25311)
* Ensure NPE is always through when VirtualProcessor.onError(null) is invoked
This fix is similar to #24749, fixing a spec violation bug that was
introduced in #24722.
2018-07-11 09:27:52 +02:00
Patrik Nordwall
62aaae06ca
Merge pull request #25286 from giftig/issue-25285
Fix Source.actorRef not  completing for Status.Success("ok")
2018-07-10 13:23:23 +02:00
Rob Moore
ce185c4dfc Source.actorRef not completing on Success (#25285)
When a Success is received, call onCompleteThenStop instead of just
context.stop; that takes care of the completion logic instead of just
stopping the actor and leaving the stream going.

Add test to ensure the stream materializes on Source.actorRef receiving
Status.Success

Remove tests around stream completion behaviour in response to
PoisonPill - as well as these tests not correctly demonstrating that the
completion was passed on downstream, they describe behaviour which was
previously incidental and is no longer accurate.

Update the docs to reflect that PoisonPill should not be used on the
actor ref as this scenario will necessarily result in bad behaviour as
it will be unable to signal the completion downstream.

Make a few grammar fixes and remove some trailing space while updating the
docs.
2018-07-09 22:25:32 +01:00
Arnout Engelen
8ba48c0adc
Compile with jdk9, targeting jdk8 (#24711) 2018-07-02 16:38:07 +02:00
Patrik Nordwall
02f6899952 example for Streams log operator (#25283)
* and added all log levels in Attributes for convenient single access point
2018-06-30 12:10:10 +09:00
Matt Kohl
33904de972 Documentation fix (#25282) 2018-06-29 13:35:24 +02:00
Lukasz Stefaniak
b8230a38b7 Optimize JsonObjectParser.isWhitespace by replacing Set.contains with match using table switch (#25260) 2018-06-26 16:44:28 +02:00
Patrik Nordwall
072627380b Optimize mapAsync(1) (#25185)
* by using mapAsyncUnordered for that case
2018-06-26 12:36:41 +02:00
Patrik Nordwall
26838dd299
Merge pull request #25166 from longshorej/outputstream-npe
Fix a NullPointerException due to race in OutputStreamSourceStage - #25159
2018-06-19 16:20:13 +02:00
Jeffrey Chung
72bd3cdfd4 Note in the docs that the zero value for fold and friends must be immutable #24971 2018-06-19 12:33:49 +02:00
Johan Andrén
fda5ca454e
Missing Mima filter added (#25243) 2018-06-18 15:20:46 +02:00
Richard S. Imaoka
60eee84345 Replace graph with operator in Scaladoc/Javadoc 2018-06-09 17:42:56 +09:00