Commit graph

22038 commits

Author SHA1 Message Date
Jimin Hsieh
3685ce619e Remove some of Unused import warning (#24750)
* Remove `Unused import` of `akka-actor-typed`

* Remove `Unused import` of `akka-actor-typed-tests`

* Remove `Unused import` of `akka-stream-tests`

* Remove `Unused import` of `akka-persistence`

* Remove `Unused import` of `akka-persistence-typed`

* Remove `Unused import` of `akka-cluster-typed`

* Remove `Unused import` of `akka-cluster-sharding-typed`

* Format source code
2018-03-20 12:01:15 +09:00
Konrad `ktoso` Malawski
b3fbf6869b
=typ #24683 Behaviors receive, receiveMessage, receivePartial, receiveMessagePartial (#24718)
* wip

* =typ #24683 Behaviors receive, receiveMessage, receivePartial,
receiveMessagePartial

* move MutableBehavior out as separate file

* receive, receiveSignal

* missing copy

* final cleanup

* cleanup, formatting
2018-03-20 00:20:13 +09:00
Konrad `ktoso` Malawski
6656b3c869
improve docs and test style of lazyInitAsync (#24754) 2018-03-20 00:04:34 +09:00
Stefan Wachter
3db145643a materialized value of Flow.lazyInit must be a Future #24670 (#24685)
* change materialized value of LazyFlow from [M] to Future[Option[M]]

* remove whitespace

* improve docu

* restore old Flow.lazyInit method and add new Flow.lazyInitAsync method

* fix deprecation messages

* add 2.5.11.backwards.excludes because of changed LazyFlow constructor signature

* check switching behaviour

* apply formatting

* improve deprecation message; improve null safety

* prevent premature stage completion by setting keepGoing

* deprecate Sink.lazyInit; add Sink.lazyInitAsync

* apply formatting

* add ProblemFilter.exclude for changed LazySink.this

* Update Sink.scala

* Update Sink.scala

* Update Flow.scala

* Update Flow.scala
2018-03-19 22:42:37 +09:00
Johan Andrén
770b3a3474 =str #24581 Bugfix in VirtualProcessor (#24722)
* Single-runnable repeater (hopefully)

* Repeat like no-one is watching

* Fix plus noisy printlns

* Toggleable debug logging for VirtualProcessor

* Updated docs graph

* Re-enable debug logging to pinpoint another potential bug

* Covered some more cases

* Revert "Repeat like no-one is watching"

This reverts commit ae5e41c80ad906a80cb3455a93f9f72a6ac1246d.

* Removed duplicate repeater

* Fixed some minor things

* copyright header

* MiMa filter

* 10000 times repeater passed PR-validation, removing

* Spinlock free solution

* MiMa

* Review feedback adressed

* Update StreamLayout.scala
2018-03-19 17:25:36 +09:00
Patrik Nordwall
382e4d82b9 minor improvement of ClusterReceptionist loading (#24739) 2018-03-19 01:01:03 -07:00
Patrik Nordwall
8847f7dfb7 less aggressive resend of Artery sys msg after nack, #24744 (#24745) 2018-03-19 00:59:44 -07:00
Christopher Batey
a0ebeb09e7 =doc Note Source.queue backpressure behavior on stream integration page (#24746) 2018-03-19 16:54:33 +09:00
Oleksii Tkachuk
36b69be4e4 Typed persistence tests: RecoveryPermitterSpec (#24748)
* Typed recovery permitter spec: Defined layout

* Typed recovery permitter spec: Defined initial spec

* Typed recovery permitter spec: Implemented 3 cases

* Typed recovery permitter spec: Finished complete initial implementation

* Typed recovery permitter spec: Removed unused class

* Typed recovery permitter spec: Renamed exception as per common practice
2018-03-19 15:19:05 +09:00
James Roper
f1a5679089 Small RS compatibility fix in cancelled sink (#24749)
* Small TCK fix in cancelled sink

* Fix comments
2018-03-19 15:08:36 +09:00
kerr
e98c77e976 + str Add java.time.Duration to akka-stream's javadsl.* (#24706)
* + str Add java.time.Duration to javadsl.Source

* + str Add java.time.Duration to javadsl.Flow

* + str Add java.time.Duration to javadsl.BidiFlow

* + str Add java.time.Duration to javadsl.RestartSource,RestartFlow and RestartSink

* + str Add java.time.Duration to javadsl.StreamConverters

* + str Add java.time.Duration to javadsl.SubFlow

* + str Add java.time.Duration to javadsl.SubSource

* !stream Deprecate methods which previously accepts Scala's FiniteDuration.
2018-03-19 14:57:26 +09:00
kerr
8245c55bc9 + str Add java.time.Duration to TimerGraphStageLogic. (#24712) 2018-03-19 14:04:44 +09:00
Christopher Hunt
e744e583e5 Capture the Success companion object as well as its class (#24747)
The absence of this is something that caught me out, and others.
2018-03-19 11:06:53 +09:00
Patrik Nordwall
c67a86ac99
Merge pull request #24743 from delftswa2018/remove-stream-testkit-coroner
Remove the duplicated class Coroner.scala
2018-03-16 17:36:50 +01:00
Martijn Steenbergen
39d21ade99 Remove the duplicated class Coroner.scala 2018-03-16 15:42:04 +01:00
Arnout Engelen
4a94a3892b Add missing import 2018-03-16 13:11:52 +01:00
Jimin Hsieh
2c2b8ba001 Remove some of Unused import warning (#24650) 2018-03-16 12:08:29 +01:00
Yoshimasa Tanabe
a878e6c9fa Adding explanation for Java DSL TestKit#awaitAssert return value (#24110) (#24737) 2018-03-16 11:41:18 +01:00
Johan Andrén
5cbdcb83cc
Expect effect type/class for BehaviorTestKit #24714 2018-03-16 10:20:05 +01:00
Christopher Batey
2bd21c1691 Improve Source.queue scala doc based on user feedback (#24734) 2018-03-16 10:01:24 +09:00
Johan Andrén
d8b9bb1b3a
Java Flow dsl lower bounds incorrect #24368 2018-03-15 14:53:50 +01:00
Johan Andrén
a53a09e6ba
Subscribing twice should cancel second subscriber #24719 2018-03-15 13:55:33 +01:00
Johan Andrén
38c0bbef7c
Split up receptionist implementations #24615 2018-03-15 12:16:04 +01:00
Johan Andrén
82f60226ff
Make use of the fact that identity is eliminated (#24702) 2018-03-14 09:21:47 +01:00
Oleksii Tkachuk
2285454956 Issue 24490: Refactoring of ActorContextSpec (#24644)
* Issue 24490: Removed unused method

* Issue 24490: Introducing NormalActorContextSpec

* Issue 24490: Implemented 'restart and stop a child actor' case

* Issue 24490: Simplified watch in 'restart and stop a child actor' case

* Issue 24490: Implemented 'stop a child actor' case

* Issue 24490: Implemented 'reset behavior upon restart' case

* Issue 24490: Implemented 'reset behavior upon resume' case

* Issue 24490: Implemented 'stop upon Stop' case

* Issue 24490: Implemented 'not stop non-child actor' case

* Issue 24490: Implemented 'watch a child actor before its termination' case

* Issue 24490: Implemented 'watch a child actor after its termination' case

* Issue 24490: Implemented 'unwatch a child actor before its termination' case

* Issue 24490: Implemented 'terminate upon not handling Terminated' case

* Issue 24490: Implemented 'return the right context info' case

* Issue 24490: Implemented 'return right info about children' case

* Issue 24490: Implemented 'set small receive timeout' case

* Issue 24490: Implemented 'set large receive timeout' case

* Issue 24490: Implemented 'schedule a message' case

* Issue 24490: Implemented 'not allow null messages' case

* Issue 24490: Implemented 'create a named adapter' case

* Issue 24490: Implemented 'not have problems stopping already stopped child' case

* Issue 24490: Introducing decoration. StepWise removed.

* Issue 24490: Isolated messages of this spec to avoid accidental usage in other specs

* Issue 24594: Fixed all review comments

* Issue 24594: Renamed message to create for readability

* Issue 24594: Fixed remaining review comments, removed unused import
2018-03-14 14:12:46 +09:00
Christopher Batey
a113ca7379 JavaDSL mergeMat ignores eager complete param (#24713) 2018-03-13 17:15:57 +01:00
Pritam Kadam
278ef5fb8c Execute tasks from Actors constructor on creation of BehaviorTestKit #24703 2018-03-13 17:15:05 +01:00
Konrad `ktoso` Malawski
563c7fbcf0 Issue 24594: Integration with sbt-headers and initial header population 2018-03-13 15:45:55 +01:00
Wade Waldron
95afa04a7a Adding additional details to the auto-downing section of the documentation to indicate the consequences of using it (#24697)
* Adding additional details to the auto-downing section of the documentation to indicate the consequences of using it

* Slight rewording based on PR feedback.
2018-03-13 15:31:23 +01:00
Arnout Engelen
ab701e98be Remove default parameters in doc journal (#24704)
* Remove default parameters in doc journal

Making sure the examples are explicit about them

* Don't rely on default parameters in docs

As those default parameters might not be present for all implementations

* remove unrelated changes from PR

* Update BehaviorTestKitSpec.scala
2018-03-13 13:26:35 +09:00
Konrad `ktoso` Malawski
ff5ee68e72
=doc #24688 link to akka cluster bootstrap in docs (#24693)
* =doc #24688 link to akka cluster bootstrap in docs

* amend
2018-03-13 08:40:49 +09:00
Johan Andrén
d03d8fdd7e Subscription timeouts should not hit after stream ref subscribe #24626 2018-03-13 01:15:33 +09:00
Konrad Malawski
d3055a7f7f recovering = replaying naming change
make all matches exhaustive

internalStashOverflowStrategy should be initialized once
2018-03-13 00:40:13 +09:00
Patrik Nordwall
7304ae981b simplify pendingInvocations 2018-03-13 00:40:13 +09:00
Konrad Malawski
5be89dea71 cleanup and make snapshots work, make event timeout work too
sadly does not work without MODULE$ did a ticket for it
2018-03-13 00:40:13 +09:00
Konrad Malawski
9e62f5b5d5 may want to benchmark typed persistence 2018-03-13 00:40:13 +09:00
Konrad Malawski
a537abc77d add MDC logging to StdOutLogger, making withMdc in Akka typed usable 2018-03-13 00:40:13 +09:00
Patrik Nordwall
e61f833dc3 make PersistingEvent MutableBehavior
fix some tests, snapshots still not working
2018-03-13 00:40:13 +09:00
Patrik Nordwall
44445140f5 EventsourcedRunning, internalPersist, internalPersistAll
* I don't think the JournalInteractions should be conserned with
  next behavior
2018-03-13 00:40:13 +09:00
Patrik Nordwall
a05f50a0c0 reduce boilerplate for passing setup (and [C,E,S])
use an enclosing class that holds the setup
2018-03-13 00:40:13 +09:00
Konrad Malawski
ffb4419c4e WIP towards immutable style
compiles, does not work..
2018-03-13 00:40:13 +09:00
Johannes Rudolph
40abd2b096 Rename PersistentBehaviorImpl => EventsourcedSetup and pass setup around directly 2018-03-13 00:40:13 +09:00
Johannes Rudolph
a9293b3df2 Allow internal custom implementations of DeferredBehavior
Pass around context for stashing
2018-03-13 00:40:13 +09:00
Johannes Rudolph
fa05695548 separate PersistentBehavior API and implementation 2018-03-13 00:40:13 +09:00
Konrad Malawski
70e225b734 =per native typed implementation of Eventsourced=>PersistendBehavior
timeout is explicitly a message of Command

persitAll and chainable side effects work well

more tests pasing

additional sanity check that mutable behaviors work as expected

unstashing needs to "loop through" the AdapterActor otherwise Stopped
won't work

solve unstashing/stop issue, by not randomly init()ing, but unstashing

snapshotting works

all tests green

rebased

nicer log source

remove IncomingCommand wrapper, we dont need it

no need for shared counter

remove not needed methods and state

more state cleanup, using Behaviors.same

reminder that we DO need that same alias, since stash does not work with
the Behavior.same

introduce config for stash buffer

stopping now works after persisting

compile fix

cleanup

reduced number of adapter styles needed for co-existence of persistence

final cleanup done, less passing around 40 objects, carriers provided
now
2018-03-13 00:40:13 +09:00
Kevin Mas Ruiz
907c6a6931 Do not drop messages in delay with EmitEarly when buffer overflows (#24642) 2018-03-12 14:08:06 +01:00
Johan Andrén
f7637d24e6
Eliminate identity flow when possible #24554 2018-03-12 12:14:40 +01:00
zodiake
1a63aa8637 Update PersistenceQueryDocSpec.scala (#24405) 2018-03-12 11:59:56 +01:00
kerr
538a5a4ae6 + actor add java.time.Duration to AbstractFSM ,ActorSelection ,Scheduler and AbstractScheduler. (#24651) 2018-03-12 11:59:00 +01:00
Gaël Bréard
318c857ff0 Add serialization with transport information method in public API #24321 (#24515)
* Add serialization with transport information method in public API #24321

Signed-off-by: Gaël Bréard <gael.breard@orange.com>

* remove copyright
2018-03-12 11:49:14 +09:00