Commit graph

23421 commits

Author SHA1 Message Date
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
Patrik Nordwall
5a47df4681
Merge pull request #26579 from akka/wip-24687-more-persistence-tests8-patriknw
cleanup logging in persistence tests, #24687
2019-03-29 09:32:03 +01:00
Johan Andrén
63aefb0b5e Represent closed in either end as closed in ADT #26493 (#26554) 2019-03-28 17:40:31 +01:00
Patrik Nordwall
725728f346 cleanup Receptionist example 2019-03-28 16:14:23 +01:00
Patrik Nordwall
35729874a6 cleanup logging in persistence tests, #24687 2019-03-28 15:43:31 +01:00
Christopher Batey
65ccada280 Lease API + use in cluster singleton and sharding, #26480 (#26629)
* lease api
* Cluster singleton manager with lease
* Refactor OldestData to use option for actor reference
* Sharding with lease
* Docs for singleton and sharding lease + config for sharding lease
* Have ddata shard wait until lease is acquired before getting state
2019-03-28 13:31:56 +01:00
Arnout Engelen
e6c41b6cc1
Fix links to Delta State Replicated Data Types paper 2019-03-28 12:11:55 +01:00
Johan Andrén
777173f988
contribution guidelines about wire compatibility (#26619) 2019-03-28 11:54:39 +01:00
Patrik Nordwall
7d58a1a2b5
Merge pull request #26421 from akka/wip-26284-removals-ClusterReceptionist-patriknw
Avoid false removals in ClusterReceptionist, #26284
2019-03-28 10:08:57 +01:00
Patrik Nordwall
02e68abae2
Merge pull request #26577 from akka/wip-24687-more-persistence-tests6-patriknw
add more tests for receiving PoisonPill in various states, #24687
2019-03-28 10:07:32 +01:00
Arnout Engelen
f8aae8dee9
Remove ancient streams migration guide 2019-03-28 08:47:54 +01:00
Helena Edelson
ef896f533e
Minor ClusterSharding scaladoc suggestions. (#26623) 2019-03-27 14:47:25 -07:00
Johan Andrén
78df394039 Typed perf improvements, #25986
* Table switch for interpreter ~20% faster

* Avoid instanceof on message in interpreter (but keep single method)
~10% faster

* Use the behavior tags all over ~4% improvement

* Make next a single tableswitch

* Behavior.wrap isn't actually used anymore

* Sidestep the untyped behavior stack
2019-03-27 16:45:20 +01:00
Patrik Nordwall
7b763c815e
Merge pull request #26621 from akka/noGenJavadocForScaladoc
Disable genjavadoc during scaladoc compilation #26617
2019-03-27 16:34:44 +01:00
Patrik Nordwall
825d90bf63 Avoid false removals in ClusterReceptionist, #26284
* The scenario was (probably) that a node was restarted with
  same host:port and then didn't join the same cluster. The DData
  Replicator in the original cluster would continue sending messages
  to the new incarnation resulting in false removals.
* The fix is that DData Replicator includes the system uid of the sending
  or target system in messages and if recipient gets a message that is from/to
  unknown it will discard it and thereby not spreading information across
  different clusters.
* Reproduced in ClusterReceptionistSpec
* Much hardening of other things in ClusterReceptionistSpec
* There are also some improvements to ClusterReceptionist to not leak
  Listing with refs of removed nodes.
* use ClusterShuttingDown
* The reason for using sender system uid instead of target uid in messages
  like Read and Write is that then the optimization for sending same message
  to many destinations can remain.
2019-03-27 16:32:19 +01:00
Patrik Nordwall
3cbda93496
add EventSourcedBehaviorRecoveryTimeoutSpec, #24687 (#26525)
* include cause message in log error message for recovery failures
2019-03-27 16:23:01 +01:00
Patrik Nordwall
e6775d7225 add more tests for receiving PoisonPill in various states, #24687 2019-03-27 16:21:57 +01:00
Arnout Engelen
8d96e6e8ce
Javadoc caveat 2019-03-27 15:12:58 +01:00
Patrik Nordwall
21f765fb86 test PoisonPill and stash of EventSourcedBehavior, #24687
also filter logging in EventSourcedBehaviorStashSpec
2019-03-27 14:59:44 +01:00
Nicolas Vollmar
c9b3f1de6d GrapheStage implementation for actorRef source (#25324) (#26054)
* Adds internal access to materializer before initialization (#25324)

* Implements new actorRef source based on graph stage  (#25324)

* Removes obsolete actorRef source (#25324)

* Improves backwards compatibility with old implementation (#25324)

* Removes dedicated new subclass for materializer access again  (#25324)

* Improves implementation (#25324)

* Finalizes implementation (#25324)

* Small improvements to API and documentation (#25324)

* Completion strategy as a replacement for poison pill (#25324)

* Adding more tests and updating the documentation (#25324)
2019-03-27 14:16:38 +01:00
Arnout Engelen
e65f403a43
Disable genjavadoc during scaladoc compilation #26617 2019-03-27 13:48:40 +01:00
Arnout Engelen
cbafc18d2e
Link to SO answer on scaladoc link disambiguation 2019-03-27 13:47:35 +01:00
Johan Andrén
39c06c7c34
FanoutPublisherSink leaking actors on upstream failure #25634 2019-03-27 12:51:34 +01:00
Arnout Engelen
fa2a89310c
Enable strict scalac options for akka-protobuf (#26582)
* Enable strict scalac options for akka-protobuf

Unfortunately it still produces a Java warning, but I see no safe way around
that (so we can't just add `-Werror` to javacOptions)

* Remove 'dead' code, bringing the class back in line with upstream
2019-03-27 10:26:35 +01:00
Patrik Nordwall
076b16485b fix typed ActorSystemSpec #26614 2019-03-27 08:30:42 +01:00
Patrik Nordwall
38930aa318
Merge pull request #26615 from akka/wip-JUnitSuite-patriknw
fix compilation error in LoggerSourceTest.java
2019-03-26 16:29:05 +01:00
Arnout Engelen
72e0e67c3c
Remove 'dead' code, bringing the class back in line with upstream 2019-03-26 16:19:30 +01:00
Arnout Engelen
9c52e57204
Enable strict scalac options for akka-protobuf
Unfortunately it still produces a Java warning, but I see no safe way around
that (so we can't just add `-Werror` to javacOptions)
2019-03-26 16:19:26 +01:00
Patrik Nordwall
47138bcffd fix compilation error in LoggerSourceTest.java
* slipped in via merge that was tested before the scalatest version update
2019-03-26 15:26:44 +01:00
Patrik Nordwall
646e68416d
Merge pull request #26568 from akka/updateScalaTest
Update scalatest to 3.0.7
2019-03-26 15:09:23 +01:00
Johan Andrén
bc4523941c Typed unstash improvements (#26599)
* Handle unhandled while unstashing #26362

* Handle stop while unstashing

* unstashing with initial Behaviors.same to refer to current actor behavior

* Unstash into deadletter when stopping during unstash

* More unhandled test coverage

* Avoid expecting ActorContextAdapter for internals

currentBehavior and onUnhandled moved to scaladsl.ActorContext as internal methods
allowing support for touching them also in the behavior testkit

* Scaladoc fixes

* Some more periods
2019-03-26 15:06:02 +01:00
Johan Andrén
9ef11c9bfc Try harder to get a good log source class in EventSourcedBehavior (#26567) 2019-03-26 14:58:06 +01:00
Ignasi Marimon-Clos
c097e8144a Extends collection of shutdown Reasons (e.g. ClusterJoinUnsuccessfulReason) (#26570)
* Adds JoiningSeedNodesUnsuccessfulReason

* Promotes IncompatibleConfigurationDetectedReason to public API

* Rename class after PR comments

* Use a custom exit code on joinUnsuccesful shuhtdown

* Mima

* Scalafmt
2019-03-26 14:52:50 +01:00
Arnout Engelen
d390fcf183 Introduce warning silencer plugin (#26588)
So now we can compile akka-distributed-data with
-Xfatal-warnings - though I'm not yet sure about
enabling the (other) undisciplineScalacOptions

* Fix multi-node silencing
* Fix scaladoc warnings
* Introduce annotation to declare ccompat use
* Add explicit toString
* Fix deprecation on 2.13
* Move 'immutable' ccompat helpers to shared ccompat package
* Add MiMa for internal scala 2.13 compatibility class
* Internal API markers
* Fix scaladoc generation
Got bitten by https://github.com/scala/bug/issues/11021
2019-03-26 14:41:29 +01:00
Patrik Nordwall
140e5e0faa
Merge pull request #26613 from ennru/paradox-template
Docs: latest Akka Paradox template
2019-03-26 14:33:44 +01:00
Enno Runne
c755177396 Docs: latest Akka Paradox template 2019-03-26 12:09:23 +01:00