Commit graph

23305 commits

Author SHA1 Message Date
Patrik Nordwall
47739cea7d update instructions for how to use Scalafmt in IntelliJ (#26682) 2019-04-05 08:30:14 +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
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
Patrik Nordwall
b44b0bfe5d fix rolling update for ddata change, #26284 2019-04-01 12:47:20 +02:00
Leandro
39a75e4912 Fix minor text omissions in actor docs (#26641) 2019-04-01 12:03:34 +02:00
Patrik Nordwall
8dfa215ded
Merge pull request #26631 from akka/paperLinks
Fix links to Delta State Replicated Data Types paper
2019-04-01 11:08:26 +02:00
Patrik Nordwall
a023b15759
Merge pull request #26644 from akka/wip-whenTerminate-patriknw
Change typed whenTerminated sig to Future[Done], #25647
2019-04-01 10:28:21 +02:00
Patrik Nordwall
e3251660c8 remove State >: Null constraint in javadsl (#26645)
* it original reason was that this constraint was required by OptionVal,
  but that has been removed
2019-04-01 09:06:37 +01:00
Enno
24212d3334 Add title and version to Scaladoc pages (#26632) 2019-04-01 09:38:42 +02:00
Tzu-Chiao Yeh
7cc6266ad0 Change typed whenTerminated signature to Future[Done], #25647
This change ignore the terminated passed from untyped and map it into Done,
with some minor changes for testing termination.

termiate() returns Unit to not bias it towards the Scala API, completion
can be observed with whenTerminated or getWhenTerminated
2019-04-01 09:09:38 +02:00
Patrik Nordwall
c06cf62b64
Merge pull request #26626 from longshorej/watch-with-mem-leak
Fix memory leak in watchWith (#26625)
2019-03-29 18:09:22 +01:00
Arnout Engelen
2a9fa71a3a
Add "-no-link-warnings" for 2.11 scaladoc (#26639) 2019-03-29 16:54:27 +01:00
Jason Longshore
c3cedbde27 Fix memory leak in watchWith (#26625)
Instead of delivering the custom message, store it locally and then
deliver it when the Terminated instance is received.

This ensures that terminatedQueued is properly cleaned when watchWith is
used.
2019-03-29 10:50:41 -05:00
Yaroslav Klymko
7f5e7ae352 log typeName in ShardRegion logs (#26611) 2019-03-29 16:39:22 +01:00
Patrik Nordwall
baeaca1ce0
Merge pull request #26610 from akka/wip-receptionist-snippet-patriknw
cleanup Receptionist example
2019-03-29 14:54:42 +01:00
Arnout Engelen
a39ac61265 Move Lease usage settings inside akka-coordination (#26637) 2019-03-29 14:27:08 +01:00
Patrik Nordwall
791e203ca4
Merge pull request #26638 from akka/wip-goto-patriknw
revert rename gotoOldest
2019-03-29 14:25:19 +01:00
Patrik Nordwall
1c93e31bf7 revert rename gotoOldest 2019-03-29 13:18:28 +01:00
Piotr Gawryś
95fce88b2d Typo in Akka Typed Persistence Docs (#26635) 2019-03-29 09:51:06 +01:00