Commit graph

22238 commits

Author SHA1 Message Date
Patrik Nordwall
8f40dc7f03 message adapter catching too much (#25110) 2018-05-22 12:14:53 +03:00
Olivier ROLAND
00f07c2429 Fix ReceiveTimeout issue with NotInfluenceReceiveTimeout #24770 2018-05-22 11:42:35 +03:00
Patrik Nordwall
f750f73e1f define interfaces for all Typed extensions, #24776 2018-05-22 09:23:50 +03:00
Patrik Nordwall
e6633f17fa
Make sure Serialization.currentTransportInformation is always set, #25067
* The ThreadLocal Serialization.currentTransportInformation is used for serializing local
  actor refs, but it's also useful when a serializer library e.g. custom serializer/deserializer
  in Jackson need access to the current ActorSystem.
* We set this in a rather ad-hoc way from remoting and in some persistence plugins, but it's only
  set for serialization and not deserialization, and it's easy for Persistence plugins or other
  libraries to forget this when using Akka serialization directly.
* This change is automatically setting the info when using the ordinary serialize and deserialize
  methods.
* It's also set when LocalActorRefProvider, which wasn't always the case previously.
* Keep a cached instance of Serialization.Information in the provider to avoid
  creating new instances all the time.
* Added optional Persistence TCK tests to verify that the plugin is setting this
  if it's using some custom calls to the serializer.
2018-05-21 16:59:04 +02:00
Richard Imaoka
6ec46e762f Add example for Java typed serialization (#25007)
* Add example for Java typed serialization (#24993)
2018-05-21 15:30:44 +01:00
Thomas Smith
3401a1bd21 Fix BoundedBlockingQueueSpec against spurious wakeups (#25025) 2018-05-21 17:09:25 +03:00
Jonas Chapuis
8ff81fbce7 Clarify mailbox configuration entry location in documentation (#25071) 2018-05-21 17:06:39 +03:00
Patrik Nordwall
52f24e5174 move Typed ActorMaterializer to scaladsl/javadsl, #24868
* add type alias for typed ActorMaterializer
* name it ActorMaterializerFactory in javadsl

Migration guide:
Scala:
import akka.stream.typed.ActorMaterializer -> akka.stream.typed.scaladsl.ActorMaterializer
Java:
import akka.stream.typed.ActorMaterializer -> akka.stream.typed.javadsl.ActorMaterializerFactory
2018-05-21 17:05:09 +03:00
Richard Imaoka
989a80d90f Better warning message on cluster sharding registration (#24906)
* Better warning message on cluster sharding registration (#24295)

* Extra useful message

* Add [] in the log messages around membersByAge.head
2018-05-21 22:00:52 +09:00
Patrik Nordwall
8c4181e552
Merge pull request #25104 from akka/wip-25084-rename-testkit-patriknw
Rename Typed TestKit, #25084
2018-05-21 14:21:02 +02:00
Patrik Nordwall
b08d3acb4b Rename Typed TestKit, #25084
Artifact:
akka-testkit-typed -> akka-actor-testkit-typed

Package:
akka.testkit.typed -> akka.actor.testkit.typed

Config:
akka.typed -> akka.actor.typed
akka.testkit.typed -> akka.actor.testkit.typed
2018-05-21 11:51:51 +02:00
Patrik Nordwall
34bb7fee3c
Merge pull request #24988 from huntc/groupby-decider
Akka stream groupBy does not invoke decider
2018-05-21 11:30:57 +02:00
Patrik Nordwall
5fbf68f23d
Merge pull request #25108 from akka/wip-18785-orElse-patriknw
add Behavior.orElse, #18785
2018-05-21 11:22:36 +02:00
Vasin Ilya
7d0eed0631 Typed testkit: Adding proper NoEffects assertions (#25062)
* Adding proper NoEffects assertions
* Added NoEffects trait for expectations by type
2018-05-21 08:59:34 +01:00
Johan Andrén
eef58946d7 Less typed stop misbehavior (#25097)
* Typed stop misbehaving #25082, #25096

* Undo that "improvement" to intercept I did...
2018-05-21 07:30:40 +01:00
Stefano Bonetti
f8ed3df013 =str #25043 using materializer.executionContext in UnfoldResourceSourceAsync (#25114) 2018-05-17 20:17:33 +09:00
Johan Andrén
b27bdba13b
Do not tear down connections on IllegalArgumentException from serializer #24910 2018-05-16 15:35:05 +02:00
Nick Poorman
0181a38ebc Fix typo in reference.conf (#25106)
rasio => ratio
2018-05-16 14:37:21 +02:00
Jimin Hsieh
53c3b817f3 Bump sbt and sbt-jmh version (#25103) 2018-05-16 13:43:21 +02:00
Paulo "JCranky" Siqueira
ad2bcfefd2 change "but, " to ", but" in modules.md (#25107)
The previous version sounds really weird, and just moving `,` makes it better.
2018-05-16 10:51:12 +09:00
Patrik Nordwall
3c05d848b1 add Behavior.orElse, #18785 2018-05-15 23:54:06 +02:00
Richard Imaoka
3caddf594c Add ref directive to GraphStage in .md files (#24995) (#25102) 2018-05-16 00:33:19 +09:00
Richard Imaoka
a57235098b consistent wording; operator instead of combinator, in remaining places (#25101) 2018-05-15 15:31:11 +02:00
Oliver Heger
8eff836dd2 Fix for contradictory OSGi meta data in akka-stream #25055 2018-05-15 15:13:07 +02:00
Filip Matusak
19f23514f6 #24778 MergeLatest operator 2018-05-15 15:03:52 +02:00
Arnout Engelen
9869c2355e
Fix Java Doc test for actorRefWithAck (#25079) 2018-05-15 11:52:07 +02:00
Richard Imaoka
ea84b8d469 Add library dependency section to documentation (#25010) 2018-05-15 11:44:33 +02:00
Filip Matusak
6fed2d78ad Fail FileSubscriber's Promise if it can't open the file #24889 2018-05-15 10:23:37 +02:00
Johan Andrén
09025092ae Remove words such as simply and obviously from docs (#25095)
* One does not "simply"

* It's not obvious

* It's not really _that_ easily done

* Basically is basically a useless word

* Of course - if you already know how things work you wouldn't be reading the docs

* Clearly is maybe not so clear for everyone

* Just was just a bit harder as there are some uses that are just
2018-05-15 07:11:03 +01:00
Patrik Nordwall
da5cc33b92 Java API for AsyncSerializer, #25078 2018-05-14 18:20:59 +02:00
Stefano Bonetti
db057df5d9 =str #25091 javadsl ZipWithIndex to return java.lang.Long 2018-05-14 15:22:35 +02:00
zmarois
7591571372 Reducing log level of restarting to WARN #25019 (#25023) 2018-05-14 10:48:48 +02:00
Guy Youansi
759010f0cd +act add java.time.Duration support Actor javadsl (#24993)
* add java support in akka-actor module in the class Abstract.ActorContext by adding the setReceiveTimeout and CancelReceiveTimeout

* add akka.actor.AbstractActor#ActorContext cancelReceiveTimeout and setReceiveTimeout to mima-excludes file

* removed scala.concurrent.duration dependency in ActorDocTest and add new method expectTerminated with java.time.Duration support in TestKit

* used java.time.Duration as default import
2018-05-14 17:22:02 +09:00
Song Kun
55fb092bb2 Add convenient version of recover, recoverWith and recoverWithRetries for javadsl.Flow (#25036)
* Add more convenient version of recover, recoverWith and recoverWithRetries for javadsl.Flow.

* The new method take a Class parameter to decide which failure to recover from.
* Also add corresponding unit tests for them.

* use case expression to express partial function

* make time out larger in unit test

* checkstyle

* fix parameter type
2018-05-13 19:15:00 +02:00
Arnout Engelen
254914c1ad Update akka-paradox (#25077) 2018-05-11 10:31:33 +02:00
Michał Gutowski
b9cc7bcb7d Fix java documenation of QueueOfferResult.Dropped (#25080) 2018-05-11 10:24:50 +02:00
Patrik Nordwall
4095aa248b
Merge pull request #24884 from akka/wip-TransportFailSpec-patriknw
harden TransportFailSpec
2018-05-11 08:12:59 +02:00
Song Kun
f976f8d793 Add unit tests and polish Javadocs with lambdas for PatternsCS. #24881 (#24998)
* Add unit tests and polish Javadocs with lambdas for PatternsCS. #24881

* remove blocking from StopActor
2018-05-10 14:32:28 +02:00
Konrad `ktoso` Malawski
7fa28b3488
consistent wording; stream ops are "operators" (#25064) 2018-05-09 16:50:32 +02:00
Christopher Hunt
97297dd2d1 groupBy does not invoke decider
groupBy does not invoke a decider when the maximum number of substreams has been exceeded. This commit fixes that.
2018-05-09 11:17:54 +10:00
Patrik Nordwall
d2f2d50b6b
Merge pull request #25052 from scoquelin/await-assert-with-java-time-duration
[TestKit] Added missing awaitAssert methods with max timeout/interval as a java.time.Duration
2018-05-08 17:03:55 +02:00
Arnout Engelen
99b1b18b57 Make KillSwitch documentation more accurate (#25066) 2018-05-08 16:30:01 +02:00
Christopher Batey
69a8a77949
Remove test reliance on application.conf (#25027) 2018-05-08 10:33:36 +01:00
Johan Andrén
9b7c2a8cb4 UnfoldResourceSource closing twice on failure, #24924
* Don't write to actual disk in test

* Silence expected log errors

* Bugfix #24924 UnfoldResource closed resource twice on failure

* One more case where close would be called twice

* Toggle closed flag after operation in restartState

* open false _before_ closing in restartState
2018-05-07 17:00:46 +02:00
Patrik Nordwall
969cdb873a
Merge pull request #25020 from chbatey/upgrade-aeron
Upgrade Aeron and make use of channelStatus on subscription
2018-05-07 16:56:03 +02:00
Sebastien Coquelin
e5cdf9824c Introduced new awaitAssert methods accepting java.time.Duration parameters 2018-05-07 10:47:06 -04:00
Patrik Nordwall
178ba1f438
Merge pull request #24987 from satansk/patch-2
=doc using PatternsCS.retry in java docs
2018-05-07 16:08:06 +02:00
Konrad `ktoso` Malawski
256f81f97e
Akka Typed ask() for Akka Streams (#24892)
* +str,typ introduce akka typed ask for akka stream

address feedback and add actor interop stages incl ask to docs

more compile tests and adjusted things

last docs

* document adding stages to docs in CONTRIBUTING

* address review comments

* rebase conflicts
2018-05-07 19:23:30 +09:00
Johan Andrén
ae20ecaf99 Update paradox theme version (#25056) 2018-05-07 18:29:32 +09:00
Christopher Batey
6674599e50 Add gradle to all dependency doc sections (#25031) 2018-05-07 09:31:09 +02:00