Commit graph

22411 commits

Author SHA1 Message Date
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
Christopher Batey
d8a47b6700
Switch order of javadsl EventHandler type params (#25354)
Closes #25188
2018-07-24 08:47:45 +01:00
Matteo Gazzetta
339fc3d48e Update dependencies and plugins (#25376)
* Update dependencies
* Update plugins
* Downgrade aeron from 1.10.2 to 1.9.3 due to test failures
2018-07-24 08:25:29 +02:00
Philippus Baalman
9fae4e2839 Add localized message from cause if message equals null (#25367) 2018-07-20 17:58:52 +09:00
Ikenna Darlington Ogbajie
fb9bb51dc7 Add examples in Scala documentation for Source.fromFuture #24933 (#25374)
* Add scala documentation for Source.fromFuture #24933
2018-07-20 07:17:05 +01:00
iyogi
3e698be9ce Add code sample for operator Source.single (#25375)
* Add code example for Source.single
2018-07-20 07:15:13 +01:00
Seeta Ramayya
61790d763d Improved logging when node joins itself #25279 2018-07-19 10:26:28 +02:00
Gordon Cheung
1638580339 Added code example for the stream operator map (#25373)
* Added code example for the stream operator map
2018-07-19 08:15:17 +01:00
Roman Filonenko
4a8368bfe0 remove unreferenced akka-docs/src/test/*/tutorial_6 (#25363) (#25364) 2018-07-19 15:22:10 +09:00
Chang Liu
862a66ecc7 Add docs and example for akka-stream operator from (#24933) (#25372)
* Add docs and example for akka-stream operator from (#24933)

* add seperate test class for code example of akka-stream from

* add copyright header
2018-07-19 13:38:47 +09:00
Konrad `ktoso` Malawski
f4fbbf9312
=typ #24725 disallow deferred behaviors as postStop hooks (#25123) 2018-07-19 10:26:01 +09:00
Giuseppe D'Alessio
578f32d322 Adding combine operator scala example #24933 (#25371) 2018-07-18 18:53:31 +02:00
Philippus Baalman
3cf87a1c12 Remove duplicate 'for' in code comments (#25366) 2018-07-19 00:08:51 +09:00
Roman Filonenko
3b8a448de2 fix broken link in akka-stream docs on ask #25358 (#25360) 2018-07-18 17:35:20 +09:00
Song Kun
ac79f9b03d Fix broken links of CRDTs materials in "Learn More about CRDTs" (#25351)
* Add a new link to "Strong Eventual Consistency and Conflict-free Replicated Data Types" and remove "Eventually Consistent Data Structures". fix #25338

* Update distributed-data.md
2018-07-16 14:10:23 +09: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
Patrik Nordwall
d330c61203
Merge pull request #25344 from akka/wip-25342-ReplicatorDeltaSpec-patriknw
Harden ReplicatorDeltaSpec, #25342
2018-07-12 12:25:14 +02:00
Patrik Nordwall
ebbdb6135e Harden ReplicatorDeltaSpec, #25342
* It was a timing race condition in the test that was exposed
  by the change in PR #25315. Full state is now sent immediately
  when receiving the DeltaNack and that makes the Update complete
  much faster for that case than before.
* That resulted in that the delta propagations from previous
  updates were still in the buffer to be sent out when the
  incr(4) was performed. Those deltas contained the NoDeltaPlaceholder,
  which caused the inrc(4) delta to also be folded into NoDeltaPlaceholder
  and thereby not propagated.
* Before the DeltaNack the buffer had time to be flushed before the incr(4)
  and therefore no NoDeltaPlaceholder.
2018-07-12 10:05:06 +02: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
Arnout Engelen
97490eb30c Fix publishing akka-stream_2.12 with jdk8 and jdk9 classes (#25341)
* Fix publishing akka-stream_2.12 with jdk8 and jdk9 classes

* Only build jdk9 classes on jdk9+

* Avoid -release on jdk8
2018-07-11 15:37:47 +02:00
Patrik Nordwall
231672fc1c
Merge pull request #25308 from DataDome/akka_remote_shutdown_warning
Changed log-level of ShutDownAssociation from Error to Warning
2018-07-11 13:30:39 +02:00
Patrik Nordwall
180ef934bc Improve performance of DData delta updates, #25310
* Use deterministic order of the target nodes for the writes when
  type RequiresCausalDeliveryOfDeltas, otherwise the random pick
  of targets caused that delta sequence numbers were missing for
  susequent updates
* Resend immediately when receiving DeltaNack instead of waiting
  for timeout. DeltaNack can happen when there are multiple
  concurrent updates from same node because each starts a WriteAggregator
  and a later Update might bypass an earlier
2018-07-11 13:14:25 +02:00
Arnout Engelen
db48514b88 Reintroduce CallerSensitive (#25326)
Not having it causes a compile error in 'sbt ++2.12.6 clean akka-actor/compile'
on jdk9, though I can't quite explain why: using the jdk8 classpath otherwise
seems to work, and I can't reproduce it in a minimal example yet.

This reverts commit c6735b630b75408b0c8bbdb22dd31f7d144346ef.
2018-07-11 11:50:45 +01:00
Patrik Nordwall
46e9c29d00
Merge pull request #25334 from akka/wip-25156-supervision-and-stopped-johanandren
Typed supervision did not handle stopped behaviors correctly #25156
2018-07-11 12:14:59 +02:00
Patrik Nordwall
9ef193cc3d
Merge pull request #25319 from akka/wip-25268-recovery-timeout-patriknw
Fix recovery timeout in Typed PersistentBehavior, #25268
2018-07-11 11:46:27 +02:00
Johan Andrén
26d251c917
Use multiple ddata keys for the typed receptionist service registry #23704 2018-07-11 11:36:00 +02:00
Patrik Nordwall
67cc779ca6 Fix recovery timeout in Typed PersistentBehavior, #25268
* The TimerMsg was wrapped in IncomingCommand and therefore stashed,
  and when unstashed causing the ClassCastException
* Solved by not using timers here but plain scheduler
* Also fixing journalPluginId and snapshotPluginId
2018-07-11 10:25:42 +02:00
Patrik Nordwall
90d589ec43 Optimized recovery #25072
* Optimize LoadSnapshot if toSequenceNr == 0, i.e. SnapshotCriteria.none,
  then no need to involve the snapshot store
* Optimize ReplayMessages if toSequenceNr == 0, i.e. Recovery.none,
  then no need to do asyncReplayMessages, but asyncReadHighestSequenceNr
  is still needed
* should still load snapshot if critera != none and toSeqNr == 0,
  weird case for saving/loading snapshots with seqNr 0
2018-07-11 10:07:31 +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
169b81eea5
Merge pull request #25208 from akka/wip-23703-ORSet-ActorRef-patriknw
Optimized serializer for ORSet[ActorRef], #23703
2018-07-11 08:59:41 +02:00
Patrik Nordwall
75c8714b21
Merge pull request #25335 from akka/spuriousPrintln
Remove spurious println
2018-07-10 21:01:25 +02:00
Patrik Nordwall
b72312d428 Support for rolling upgrade, #23703 2018-07-10 20:54:58 +02:00
Patrik Nordwall
f754705c9c Optimized serializer for ORSet[ActorRef], #23703
* ORSet[ActorRef] is used by Akka Typed receptionist
* and similar for GSet[ActorRef]

ORSetSerializationBenchmark
2018-07-10 20:54:51 +02:00
Arnout Engelen
fb906cb603 Remove spurious println 2018-07-10 18:13:36 +02:00
Justin Peel
a05170c419 Check remembered entities before remembering entity (#25271)
* Check remembered entities before remembering entity

Messages that come through for an entity before StartEntity
has been processed for that entity caused redundant persistence
of the entity.
2018-07-10 16:24:52 +01:00
Patrik Nordwall
51e0bc2347 Behavior for spawning actors, #25223 (#25273)
* Behavior for spawning actors, #25223
2018-07-10 15:43:34 +01:00
Johan Andrén
67e23c44c1 Typed deathpact supervision (#25303) 2018-07-10 15:49:39 +02:00
Johan Andrén
86a9006f3d Typed supervision did not handle stopped behaviors correctly #25156 2018-07-10 15:28:44 +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
Christopher Batey
836347fe08 Typed persistence: Throw on persist failures, #24479
* Rather than stop so that users can add their own supervision e.g.
restartWithBackOff
* Only allow back off supervisoir for persistent behaviors
* Handle persist rejections
2018-07-09 10:57:36 +02:00
Patrik Nordwall
9cecba3455 Composable javadsl CommandHandlerBuilder, #25226 (#25227)
* Composable javadsl CommandHandlerBuilder, #25226
* CommandHandlerBuilder with stateClass and statePredicate parameters
* CommandHandlerBuilder.orElse
* Remove ActorContext from handler function signatures, can be
  passed in constructor
2018-07-06 15:35:07 +01:00
Kirill A. Korinsky
27601f5107
Changed log-level of ShutDownAssociation from Error to Warning
When the node has left the cluster, existed nodes throw
akka.remote.transport.Transport$InvalidAssociationException with message `The
remote system terminated the association because it is shutting down`.

This error normally happened when node is leaving the cluster in redeployment
proposal and it isn't an error but it creates a noise in monitoring/alert system.

So, I propose to log it as Warning.
2018-07-06 00:45:14 +02:00
Mikko Östlund
46b433b47d Align Java sample DeviceGroupQueryTest with the Scala one #25278 2018-07-03 17:39:12 +02:00
Jimin Hsieh
77c3bee28c Fix broken link (#25304) 2018-07-03 17:30:30 +02:00
Konrad `ktoso` Malawski
29f30a4a78 =clu Accept Welcome message from previous joinSeedNodeProcess #25295 (#25297)
* =clu Accept Welcome message from previous joinSeedNodeProcess #25295
2018-07-03 15:22:20 +01:00
Arnout Engelen
bc6cb3b1da Discover Linux java versions with full versions (#25302)
* Discover Linux java versions with full versions
* Discover java versions from Oracle RPM's
2018-07-03 15:20:12 +01:00
Roman Filonenko
b7f7af0641 fix formatting spaces in Java samples for akka typed (#25292) 2018-07-03 22:27:26 +09:00