Commit graph

22398 commits

Author SHA1 Message Date
Roman Niukhalov
24f79c3ca3
Merge branch 'master' into fix-receive-timeout 2018-07-14 02:16:42 +07:00
Roman Niukhalov
fc5aae354e Added exclude rules for binary compatibility check 2018-07-14 02:16:17 +07:00
Jason Longshore
c36598a93c Fix a typo in BroadcastHub doc (#25346) 2018-07-13 04:23:57 +01:00
Roman Niukhalov
929ce71372 Fixed scheduling and cancelling receive timeout #25340
- The issue occurs when setReceiveTimeout is called during processing a message marked as NotInfluenceReceiveTimeout
2018-07-13 01:22:27 +07: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
Roman Filonenko
e6d67d8555 fix dependency blocks in documentation (#25240) (#25294) 2018-07-03 14:18:36 +02:00
Christopher Batey
85754e8a2a Harden PersistentBehaviorSpec (#25301)
As the snapshot is async it might not be ready for the next part of the
test. Use a probe to make sure it is done.

Fixes #25296
2018-07-03 13:58:10 +02:00
Johan Andrén
29cf96b90c
Concurrency fix for BoundedBlockingQueueSpec #24991 2018-07-03 13:19:04 +02:00
Johan Andrén
6e5efccbd6
Fix failure in typed RecoveryPermitterSpec #25233 2018-07-03 12:10:40 +02:00
Christopher Batey
0f26acd818
Add dep from multi-jvm cluster to multi-jvm cluster-typed (#25299) 2018-07-03 09:03:13 +01:00
Johan Andrén
159ba045cf
Race condition in ManualTimerExampleSpec fixed #24957 2018-07-03 09:36:50 +02:00
Patrik Nordwall
d5d908e1eb
Merge pull request #25290 from chbatey/issue-25288
Cluster sharding: Set waiting for state timeout for tests
2018-07-02 20:23:20 +02:00
Patrik Nordwall
f0b0183ef3
Merge pull request #25291 from johanandren/wip-24728-cluster-api-spec-fail-johanandren
Don't trigger graceful leave in typed ClusterApiSpec
2018-07-02 20:14:56 +02:00
Arnout Engelen
8ba48c0adc
Compile with jdk9, targeting jdk8 (#24711) 2018-07-02 16:38:07 +02:00
Johan Andrén
75f044a0d0 Don't trigger graceful leave #24728 2018-07-02 15:57:36 +02:00
Roman Filonenko
e94d011cbd populate Creating Actors section in the akka typed documentation (#25218) (#25236)
* populate Creating Actors section in the akka typed documentation (#25218)
2018-07-02 13:31:39 +01:00
Christopher Batey
ee7e699d23 Cluster sharding: Set waiting for state timeout for tests
Default is 5s which means if the first Read is lost and
a test ddata have any secondary nodes to query it'll
timeout waiting to get the state.

E.g. read being ignored due to loading durable state then
never gets retries
2018-07-02 12:50:29 +01: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