Commit graph

23475 commits

Author SHA1 Message Date
Johan Andrén
e4ed594d20 Document the issue away... (and fix bug in supervision) #26706 2019-04-10 11:31:47 +00:00
Patrik Nordwall
75d3117d7d revert Shard constructor signature changes
* because it breaks instrumentation
2019-04-09 16:11:55 +00:00
yiksanchan
8376bee244 Replace deprecated expectNoMsg with expectNoMessage (#26695) 2019-04-08 16:14:42 +02:00
Jason Zaugg
e2dc818625 Fix typo in documentation (#26702) 2019-04-08 16:12:58 +02:00
Arnout Engelen
a70a193f5a
Fix akka-stream javadoc errors 2019-04-05 17:21:29 +02:00
Christopher Batey
f798481de5 Enable fatal warnings for cluster metrics and slf4j (#26678) 2019-04-05 17:06:02 +02:00
Johan Andrén
4bb60bbcc8
akka-cluster-sharding compiler warnings as fatal errors (#26648) 2019-04-05 14:56:33 +02:00
Johan Andrén
38e63a0e41 akka-persistence compiler warnings as fatal errors (#26654) 2019-04-05 14:43:23 +02:00
Johan Andrén
7e7901ad49
akka-stream compiler warnings as fatal errors (#26673) 2019-04-05 13:06:33 +02:00
tison
dcb2eeabed Replace WrappingBehavior with directly access of InterceptorImpl 2019-04-05 18:59:45 +08:00
Arnout Engelen
6207484c0e
Review follow ups for PR #26653 (#26668)
* Review follow ups for PR #26653

* Internal marker for error messages
2019-04-05 11:04:32 +02:00
Kopaniev Vladyslav
897fecdd97 Use BenchTestSource in streams JMH benchmarks #26563 2019-04-05 11:04:25 +02:00
Patrik Nordwall
ca6d0f8c22 Use ExecutionContext.parasitic for Scala 2.13, #26655"
* scala.concurrent.Future$InternalCallbackExecutor$ doesn't exist in
  Scala 2.13
* also changed the fallback to use sameThreadExecutionContext since they
  seems to be identical
2019-04-05 10:24:03 +02:00
Patrik Nordwall
a82992b1b4 remove obsolete Java serialization compat tests, #26677 (#26686)
* the one for NoMessage fails with Scala 2.13
* the origin of these tests was when Java serialization was
  used for system messages, which isn't used any more
* Scala doesn't guarantee java serialization compatibility between
  major versions anyway
2019-04-05 10:23:29 +02:00
Patrik Nordwall
47739cea7d update instructions for how to use Scalafmt in IntelliJ (#26682) 2019-04-05 08:30:14 +01:00
Christopher Batey
656f88aaf2 Internal marker for error messages 2019-04-05 08:17:47 +01:00
Arnout Engelen
91da4c26e9
Fix ByteIterator for 2.11 and 2.13 (#26680)
Fixes #26658 but for 2.11 and 2.13
2019-04-04 16:06:52 +02:00
Patrik Nordwall
0595975179
Merge pull request #26674 from chbatey/issue-26667
Guide for using artery udp inside a container
2019-04-04 16:06:28 +02:00
Johan Andrén
d699332b53 akka-cluster-tools compiler warnings as fatal errors (#26647) 2019-04-04 15:35:18 +02:00
Arnout Engelen
cc1138523e Correctly parse stream signatures (#26659) (#26669)
That were spread over multiple lines since switching to scalafmt
2019-04-04 13:21:44 +02:00
Patrik Nordwall
9a19a73f9a
Merge pull request #26672 from akka/wip-latestPatchOf25-2.5.22-patriknw
update latestPatchOf25 to 2.5.22
2019-04-04 12:37:48 +02:00
Christopher Batey
5a81e973b4 Make compilation options for akka typed modules strict (#26565) 2019-04-04 10:58:21 +02:00
Arnout Engelen
1610c91ab9
Fix a couple of docs warnings (#26671)
Which make https://jenkins.akka.io:8498/job/akka-docs fail
2019-04-04 10:56:46 +02:00
Patrik Nordwall
8df2366284 addition about rolling update in Artery migration guide (#26670) 2019-04-04 08:09:52 +01:00
Christopher Batey
59bd0cbad5 Guide for using artery udp inside a container 2019-04-03 16:10:40 +01:00
Patrik Nordwall
a8f8409bfa update latestPatchOf25 to 2.5.22 2019-04-03 16:37:39 +02:00
eugene yokota
1a2cf3d4c6 Allow build to run on JDK 8 (#26642)
Ref #26233

Currently Akka fails to build on sbt community build, which runs on JDK 8. Likely it will fail on Scala community build as well due to `--ignore-source-errors`.
This makes the flag conditional based on the running JDK.

It will be useful for Scala toolchain to be able to validate its latest using latest Akka if possible.
2019-04-03 15:28:55 +02:00
Arnout Engelen
abbbfb5b54
Use sbt-paradox-apidoc plugin (#26660)
Instead of using custom code here. Checked with 'meld' that the result
is the same, except for problems that were already there (filed #26659).
2019-04-03 13:14:27 +02:00
Arnout Engelen
76479b8770
[not for merge] Warnings as errors in akka-actor (#26634)
Warnings as errors in akka-actor
2019-04-03 13:13:44 +02:00
Christopher Batey
fbcb8c9f33 Review follow ups for PR #26653 2019-04-03 07:32:38 +01:00
Patrik Nordwall
18802420fb
Merge pull request #26665 from akka/wip-26664-artery-ready-patriknw
Declare Artery TCP ready for production, #26664
2019-04-02 21:55:45 +02:00
Christopher Batey
88091c1ac9 Untyped/Typed supervision (#26653)
* Clarify supervision from untyped to typed
* Default to restart for untyped spawned from typed
* Default to stop for typed spawned from untyped
2019-04-02 21:54:54 +02:00
Patrik Nordwall
9dae4050eb
Always intercept TimerMsg, also when restarted, #26556 (#26650)
* To avoid ClassCastException of TimerMsg if TimerMsg is already enqueued
  in mailbox and there is a restart with intiial behavior that is not using withTimers
* let ActorAdapter be responsible of intercepting TimerMsg
  * instead of trying to keep the TimerInterceptor when restarting
* more conistent cancelation of timers when exception/restart
2019-04-02 18:26:15 +02:00
Patrik Nordwall
c1a9a691a6
Merge pull request #26627 from akka/wip-26545-RetentionCriteria-patriknw
Make RetentionCritera evolvable, #26545
2019-04-02 16:20:53 +02:00
Patrik Nordwall
7c04cf0838
Merge pull request #26663 from akka/wip-26640-ready-patriknw
Declare Akka Typed ready for production, #26640
2019-04-02 16:19:07 +02:00
Patrik Nordwall
9c2b660617 Declare Artery TCP ready for production, #26664 2019-04-02 16:17:25 +02:00
Patrik Nordwall
81f11c97dd Make RetentionCritera evolvable, #26545
* allow combining snapshotWhen and RetentionCriteria
* RetentionCritieria unit test
* move retention and snapshot tests to separate EventSourcedBehaviorRetentionSpec
  * because EventSourcedBehaviorSpec is testing too many different things
* Update Scaldoc and reference documentation
  * moved it to the snapshotting page
2019-04-02 15:22:06 +02:00
Helena Edelson
a2f65de599 Typed Persistence: snapshotEvery vs RetentionCriteria #26544 2019-04-02 15:22:06 +02:00
Patrik Nordwall
b5b592c8f9
Remove Scala 2.11 from crossScalaVersions (#26656)
* Remove Scala 2.11 from crossScalaVersions

* because +buildRelease doesn't work with mixed crossScalaVersions
* let's use akka.build.scalaVersion when building for 2.11
* aggregatedProjects adjusted depending on akka.build.scalaVersion is 2.11 or not,
  there excluding/including the -typed modules

* update travis to use akka.build.scalaVersion
2019-04-02 15:16:01 +02:00
Patrik Nordwall
39c18aa647 Declare Akka Typed ready for production, #26640 2019-04-02 15:12:10 +02:00
Arnout Engelen
fe2317b46e
Fix coordination test 2.13.0-M5 #26636 (#26657)
Workaround for https://github.com/scala/bug/issues/11242
2019-04-02 14:47:23 +02:00
Patrik Nordwall
4c4abda645
Merge pull request #26608 from akka/wip-26489-unstashAll-patriknw
unstashAll as terminal Effect, #26489
2019-04-02 14:42:59 +02:00
Christopher Batey
2517ff8595 Use logger in typed intro docs examples (#26406)
* Use logger in typed intro docs examples

* Remove the rest of the printlns

* Fix compiler warnings + add type param

* Update akka-actor-typed-tests/src/test/scala/docs/akka/typed/IntroSpec.scala

Co-Authored-By: chbatey <christopher.batey@gmail.com>

* Review feedback

* Review feedback

* Formatting
2019-04-02 11:17:48 +02:00
Patrik Nordwall
11a18370c4 unstashAll as terminal Effect, #26489
* Effect.persist(event).thenUnstashAll().thenRun(..) can be misinterpreted
  as the callback of thenRun is invoked when all unstashing has been completed,
  while it is actually running the callback first and the the unstashing process
  follows.
* Unstashing is a process where stashed commands are processed one-by-one
  and waiting for persist effects to complete before processing next.
* Even if we would come up with a way to keep pending callbacks around during
  the unstashing it would probably be complicated for user to reason about it.
  Suddenly a callback is executed from an old command although several other
  commands (that were stashed/unstashed) have been processed inbetween.
* This change makes the unstashAll Effect terminal, meaning that additional
  effects like thenRun can't be added after unstashAll.
* ReplyEffect is also terminal, which makes sense since it's supposed to be
  returned effect. It must still be possible to combine with thenUnstashAll,
  thenReply.thenUnstashAll.
2019-04-02 11:16:28 +02:00
Patrik Nordwall
08abca7956
Merge pull request #26500 from chbatey/issue-25964
Harden InactiveEntityPassivationSpec
2019-04-02 09:15:13 +02:00
Patrik Nordwall
956cc40008
Merge pull request #26612 from ennru/docs-adapter-import
Typed docs: include the import in the code snippet where it is used
2019-04-02 07:14:58 +02:00
Patrik Nordwall
1cf7ef39ea
Merge pull request #26620 from akka/scaladocLinkingDoc
Link to SO answer on scaladoc link disambiguation
2019-04-02 07:13:42 +02:00
Zili Chen
02dc90ff6d Fix typo of DispatcherSelector's Scaladoc (#26649) 2019-04-01 17:36:32 +02:00
Patrik Nordwall
30a278a96e
Merge pull request #26646 from akka/wip-26284-rolling-update-patriknw
fix rolling update for ddata change, #26284
2019-04-01 16:34:25 +02:00
Patrik Nordwall
1120a31e87
include state in EventSourcedBehavior.receiveSignal, #26574 (#26643)
* include state in EventSourcedBehavior.receiveSignal, #26574

* because state type can't be inferred in RecoveryCompleted
* and probably useful to always have access to the state for the signals
* PartialFunction with (state,signal) tuple

* improve how to handle exceptions from signals
2019-04-01 16:33:34 +02:00