Commit graph

4887 commits

Author SHA1 Message Date
Patrik Nordwall
0458b5624d
Merge pull request #26980 from helena/deprecate-actor-typedactor
Deprecate akka.actor.TypedActor #25516
2019-05-21 21:06:23 +02:00
Patrik Nordwall
6dc7898a2a
Merge pull request #26981 from helena/deprecate-serde-class-opt
Deprecate Serialization.deserialize that takes  parameter #25945
2019-05-21 20:52:28 +02:00
Patrik Nordwall
a4a61649f6 add InternalStableApi annotation (#26949) 2019-05-21 16:29:11 +01:00
Helena Edelson
593f9501b5 * Deprecate akka.actor.TypedActor #25516 2019-05-21 10:38:38 -04:00
Helena Edelson
36ff77124c Deprecate Serialization.deserialize that takes parameter #25945 2019-05-20 17:39:46 -04:00
Dale Wijnand
03c4efdc1d Rewrite some code for Scala 2.13 (#26944)
* Rewrite some code for Scala 2.13

Rewrote some code to avoid some deprecations coming in 2.13.

* Drop usage of scala.Symbol in the tests
2019-05-20 08:59:49 +02:00
Patrik Nordwall
5db334f2b1
Merge pull request #26893 from jrudolph/jr/remove-fjp-copy
act: remove shaded fork join pool implementation
2019-05-17 10:44:55 +02:00
Arnout Engelen
7b20b89ce0
Add ByteString.emptyByteString to Java API (#26931)
* Add ByteString.emptyByteString to Java API

To work around https://github.com/scala/bug/issues/11509

* Add note to 2.6 migration document
2019-05-16 14:02:49 +02:00
Christopher Batey
90f137646e
Move incorrect deprecated annoation in BackoffSupervisor (#26914) 2019-05-16 11:06:44 +01:00
Patrik Nordwall
35e7e07488
Some more internal-dispatcher usages, #26915
* tried to investigate the (small) increase in LatencySpec that occured
  when the internal-dispatcher was introduced
* couldn't see significant difference when running locally
* found a few more places where the internal-dispatcher should be used
* my thinking is that the additional latency could have been caused by
  hopping between dispatchers, but I'm not sure if any of these
  changes will have an effect (we'll see in Jenkins job)
* more clear router props
2019-05-15 19:35:57 +02:00
Helena Edelson
83503919b2 New ReceiveTimeout not applied if it was set while handling a messag… (#26892)
* New ReceiveTimeout not applied if it was set while handling a  message
* Test receive timeout change to probe on ReceiveTimeout of last set value.
2019-05-14 15:33:42 +02:00
Johan Andrén
8348bcc5b8
Fix for UdpConnected actor going away on PortUnreachableException #26903 2019-05-14 15:20:41 +02:00
Shutao Tang
fc189e6962 Adds parentheses to method that has side-effect (#26864)
* Adds parentheses to Thread.currentThread and Lock.lock

* Removes some unnecessary parentheses and fixes typo

* Simplify Map.get(xxx).getOrElse(yyy) to Map.getOrElse(xxx, yyy)

* Adds parentheses to CountDownLatch#countDown

* Removes unnecessary new-modifier of case-class and asInstance cast
2019-05-08 18:51:15 +02:00
Johannes Rudolph
c90f5720b3
act: remove shaded fork join pool implementation
I ran a series of benchmarks and there seem to be different behaviors between the existing and JDK
ForkJoinPools especially on JDK11 and Graal. The results have been really inconclusive about which one would be a benefit overall.

In lack of better evidence, there is not much reason to keep our own copy, so there it goes.

(I couldn't reproduce the high system CPU usage with more recent JDKs that Patrik noticed when
we had it on the table the last time in #22560.)

Fixes #26180.
2019-05-08 17:30:16 +02:00
Patrik Nordwall
c74b7391f5
Merge pull request #26423 from jrudolph/jr/avoid-cas-if-not-needed
actor: Potential systemQueuePut improvement
2019-05-08 17:03:52 +02:00
Johannes Rudolph
7b6367e56a
act: avoid ReceiveTimeout handling in hot path if no receive timeout is set (#26420)
This seems to improve ActorBenchmark by 10-20% for me.
2019-05-07 15:09:15 +02:00
Philippus Baalman
70c3d08b5a Update typesafe config to 1.3.4 (#26875)
Link to latest version of the Typesafe Config Library API docs
2019-05-07 12:47:26 +02:00
REASY
8c0a79b7b1 Use java.lang.StringBuilder to format timestamp (#26868) 2019-05-07 12:03:32 +02:00
Shutao Tang
c70370b4d6 Simplify the boolean expression (#26855) 2019-05-06 10:09:06 +02:00
Patrik Nordwall
2bbf13f707
Run CoordinatedShutdown from ActorSystem.terminate #25213 (#26830) 2019-05-03 10:47:47 +02:00
Johan Andrén
81b1e2ef9b Internal dispatcher to protect against starvation (#26816)
* Allow for dispatcher aliases and define a internal dispatcher
* Test checking dispatcher name
* MiMa for Dispatchers
* Migration guide entry
* No need to have custom dispatcher lookup logic in streams anymore
* Default dispatcher size and migration note about that
* Test checking exact config values...
* Typed receptionist on internal dispatcher
* All internal usages of system.dispatcher gone through
2019-05-02 22:35:25 +02:00
Patrik Nordwall
14de568570 Remove remainings of actorFor, #26190
* remove undefinedUid specials related to actorFor
* mention in migration guide
* remove special case for watch of undefinedUid
2019-05-02 19:17:40 +02:00
Shutao Tang
8c8972c9a1 Removes the redundant val/final modifier in akka.dispatch/routing (#26822)
* Removes the redundant val/final modifier in akka.dispatch/routing

* Formats code via sbt akka-actor/scalafmtAll

* Handle one argment of map/recover/collect in akka-actor module

* Removes unuseful @param annotation
2019-05-02 18:00:43 +02:00
Arnout Engelen
7274ea15fb
Remove from allModules 2019-04-26 16:57:03 +02:00
Arnout Engelen
96c8ef4257 Remove akka-camel (#26768)
* Remove akka-camel

This module has been deprecated since 2.5.0 and will now be removed in 2.6.

If there is interest it can be moved to a separate community-maintained repo.

* Add note to migration guide

* Remove from allModules as well
2019-04-25 15:55:25 +02:00
Christopher Batey
39b344c508 Remove actor dsl (#26784)
* Removals of actor dsl
* Mima for actor dsl removal
* Remove inbox doc test
* Keep main in echo server example
2019-04-25 15:53:27 +02:00
Patrik Nordwall
5620c4af9d
Merge pull request #26727 from chbatey/issue-26527
Clarify scaladoc for restarting an infinite number of times
2019-04-23 18:58:47 +02:00
Martynas Mickevičius
2184a617a3 Drop MiMa filters for 2.4.x (#26781) 2019-04-23 09:24:29 +02:00
Christopher Batey
0ab7a96ae2
Remove Scala 2.11 for Akka 2.6 (#26760)
* Remove Scala 2.11 for Akka 2.6

* Remove unused import

* Update akka-actor/src/main/scala-2.13/akka/compat/Future.scala

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

* Update akka-actor/src/main/scala-2.13/akka/compat/Future.scala

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

* Remove last few bits of 2.11
2019-04-19 07:53:27 +01:00
Christopher Batey
8dd6f790bd Remove warnings in akka-cluster (#26739)
Also undeprecate isTerminated but mark it internal
2019-04-16 19:10:31 +02:00
Patrik Nordwall
a5e9741d35 replace unicode arrows again (#26732) 2019-04-15 15:40:26 +00:00
Christopher Batey
2506d00996 Clarify scaladoc for restarting an infinite number of times
Closes #26527
2019-04-15 08:58:57 +01: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
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
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
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
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
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
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
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
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
Adriaan Groenenboom
1fe5505f84 Accept TTL values of 0 in CachePolicy #26427
As per RFC spec https://www.ietf.org/rfc/rfc1035.txt (Section 3.2.1)
2019-03-25 17:28:10 +01:00
Auto Format
75579bed17 format source with scalafmt, #26511 2019-03-15 10:23:46 +01:00
kerr
7649264998 Deprecated the after pattern supporting methods which accept a value of Future or CompletionStage. (#25817) 2019-03-15 10:11:55 +01:00
Patrik Nordwall
c676735a3b
Merge pull request #26301 from jrudolph/jr/26300-Unregistered-DeadLetter-logging
=act #26300 try not to get stopped by death pact before Unregistration is complete
2019-03-15 09:59:48 +01:00
Johannes Rudolph
f315e9693c
actor: Potential systemQueuePut improvement
It seems when no system messages need to be handled, systemQueuePut is
mostly called with both lists being empty. In that case, we try to
avoid the CAS overhead.

This changes behavior at least in two regards:
 * no volatile memory access, so there's no barrier (but is that required?)
 * one less opportunity for competing threads to put a message into the
   queue and have that being delivered immediately, so the previous
   version could be seen as an extra poll (but would that be needed for
   anything?)
2019-03-13 14:46:58 +01:00
Auto Format
ce404e4f53 format source with scalafmt 2019-03-11 16:58:55 +01:00