Commit graph

1740 commits

Author SHA1 Message Date
Patrik Nordwall
b30e460be7 = #17342 Make 2.4 binary compatible with 2.3
(cherry picked from commit 89af8bdb90)

* remove final identifier in serializers

i* revert/deprecate ProtobufSerializer.ARRAY_OF_BYTE_ARRAY

* adding back compatible empty constructor in serializers

* make FSM.State compatible

* add back ActorPath.ElementRegex

* revert SocketOption changes and add SocketOptionV2
  see a6d3704ef6

* problem filter for ActorSystem and ActorPath

* problem filter for ByteString

* problem filter for deprecated Timeout methods

* BalancingPool companion

* ask

* problem filter for ActorDSL

* event bus

* exclude hasSubscriptions

* exclude some problems in testkit

* boundAddress and addressFromSocketAddress

* Pool nrOfInstances

* PromiseActorRef

* check with 2.3.9

* migration guide note

* explicit exclude of final class problems
2015-05-11 21:11:52 +02:00
hepin
e4baf1d82e +act #17274 make ForkJoinPool asyncMode configurable
(cherry picked from commit 05f156bdc0eae121aa122028a582084bc4bb22dc)
2015-05-08 12:35:20 +02:00
Endre Sándor Varga
3d5cb2454f =act #17341: Revert starvation prone optimization 4e0bd6d
- also adding test to reproduce the problem
(cherry picked from commit 9e115f2)
2015-05-07 16:07:57 +02:00
Patrik Nordwall
ee1cb711f9 Merge pull request #17402 from akka/wip-17002-ActorSystemSpec-patriknw
=act #17002 Harden ActorSystemSpec
2015-05-07 11:06:20 +02:00
Patrik Nordwall
22191620fd =act #17002 Harden ActorSystemSpec 2015-05-06 17:03:04 +02:00
Patrik Nordwall
d20166d5b4 =act #13935 Throw same exception when extension init fails
* The problem is that when an extension partly fails the next
  attempt will typically generate another failure, such as
  "actor name [snapshot-store] is not unique"
* We have seen this problem for both persistence and cluster
  extensions
* Extensions are now only given one chance to initialize and
  thereafter fail fast with same exception as the the first failure
2015-05-06 15:34:51 +02:00
Patrik Nordwall
e0d4230193 Merge pull request #17256 from akka/wip-17255-tmp-disable-broken-workaround-master-patriknw
=act #17255 Temporary disable windows-connection-abort-workaround (for validation)
2015-04-22 21:22:14 +02:00
Patrik Nordwall
e75f43c53e =act #17255 Temporary disable windows-connection-abort-workaround
(cherry picked from commit 5d557261082421dda234ad37656d6940252158af)
2015-04-22 10:30:58 +02:00
hepin
e0f06fdee7 +act #13516 add getByteString and getBytes method with a given length 2015-04-21 14:33:48 +08:00
Konrad Malawski
437e64500c Merge pull request #17152 from ktoso/wip-forMaxOverride-FSM-ktoso
=act #17140 FSM: forMax(Inf) can now override stateTimeout
2015-04-09 17:34:39 +02:00
Konrad Malawski
bdedb1039f =act #17140 FSM: forMax(Inf) can now override stateTimeout 2015-04-09 17:32:18 +02:00
Patrik Nordwall
ea2219950d Merge pull request #17147 from akka/wip-17080-move-socketutils-master-patriknw
=tes #17080 Move TestUtils to testkit.SocketUtil (for validation)
2015-04-08 13:03:56 +02:00
Konrad Malawski
8ad51fba39 Merge pull request #17144 from colinrgodsey/15170-bytestringser-2
ByteString serialization
2015-04-08 11:44:03 +02:00
Patrik Nordwall
79e7fe22de =tes #17080 Move TestUtils to testkit.SocketUtil
(cherry picked from commit 3df2a822efa7e1330d564ceea7506d606359e17c)

Conflicts:
	akka-actor-tests/src/test/scala/akka/actor/ActorPerfSpec.scala
	akka-actor-tests/src/test/scala/akka/io/UdpIntegrationSpec.scala
	akka-durable-mailboxes/akka-file-mailbox/src/main/scala/akka/actor/mailbox/filebased/filequeue/Journal.scala
	akka-testkit/src/main/scala/akka/testkit/SocketUtil.scala
2015-04-08 08:21:38 +02:00
Colin Godsey
1984a76195 =act #15170 bytestring serialization 2015-04-07 09:34:21 -05:00
Konrad Malawski
8d34880dff Merge pull request #17050 from ktoso/wip-actor-path-errors-impr-ktoso
+act #17012 improve err msg on invalid actor name/path
2015-04-07 11:05:38 +02:00
Konrad Malawski
c31469dd29 +act #17012 improve err msg on invalid actor name/path
Resolves #17012
2015-04-07 11:04:54 +02:00
hepin
cea44acb16 #17135 replace substring with take to avoid Exception in non English evn 2015-04-03 17:40:07 +08:00
Konrad Malawski
faefc32237 Merge pull request #17086 from hepin1989/master
#15825 add isEmpty and nonEmpty to ByteStringBuilder
2015-04-02 10:57:47 +02:00
Konrad Malawski
884e8d08a8 =act #17087 PromiseActorRef (ask pattern) must send right Terminated() 2015-03-30 16:19:48 +02:00
hepin
954a86bf80 -#15825 add isEmpty and nonEmpty to ByteStringBuilder 2015-03-28 13:39:46 +08:00
nordicway
eea08743f5 =doc fix PoisonPill typos 2015-03-19 19:55:03 +01:00
Roland Kuhn
dca7c42ae4 Merge pull request #16793 from akka/wip-TypedMultiMap-∂π
add akka.util.TypedMultiMap
2015-03-14 21:12:10 +01:00
Julian Tescher
00f6a58e7c Changes all occurances of Typesafe copyright to extend to 2015 2015-03-10 14:12:19 -07:00
Patrik Nordwall
30df518421 =tes Use ConversionCheckedTripleEquals 2015-03-10 08:17:03 +01:00
Balázs Kossovics
062fea2096 =act #16536 actor selection now completes ask
To implement the feature VirtualPathContainer.! was overridden to handle
ActorSelectionMessages. In ActorSelectionMessages only SelectChildName
elements are supported to disallow counterintuitive behaviors (like
completing all outstanding ask operations).
2015-03-04 16:38:50 +01:00
Roland Kuhn
90b05abc06 add akka.util.TypedMultiMap
This greatly simplifies the Receptionist by providing the ability to
express a polymorphic map that calculates the type of each value from
the type of its key. Another possible use of this map is to express the
Extensions map in a type-safe fashion (no casts needed).
2015-02-13 20:27:33 +01:00
Roland Kuhn
f632183df5 Merge pull request #16788 from alejandrolujan/16757-messages-to-user-should-be-unhandled-alejandrolujan
=act #16757 Remove handling of default messages on guardians
2015-02-07 09:31:00 +01:00
Alejandro Lujan
455f44d813 =act #16757 Remove handling of default messages on guardians
Guardians are now consistent with other actors in that they
do not handle messages they can't act upon. Instead of handling
messages and forwarding them to Dead Letters, guardians now
simply ignore these messages.
2015-02-06 12:51:38 -05:00
Roland Kuhn
15ebe8f082 fix warnings in akka-actor-tests 2015-01-30 19:02:12 +01:00
Roland Kuhn
d9efd041f7 add akka-typed project with generic ActorRef
This is the first step towards more type-safety in Actor interactions,
comprising:

* generic ActorRef[T] that only accepts T messages
* generic ActorSystem[T] extends ActorRef[T] (sending to the guardian,
  whose Props[T] are provided for ActorSystem construction)
* removed the Actor trait: everything in there has been made into
  messages and signals
* new Behavior[T] abstraction that consumes messages (of type T) or
  Signals (lifecycle hooks, Terminated, ReceiveTimeout, Failed),
  producing the next Behavior[T] as the result each time
* the ask pattern is provided and yields properly typed Futures
* variants of ActorContext are provided for synchronous testing of
  Behaviors

All of this is implemented without touching code outside akka-typed
(apart from making guardianProps configurable), creating wrapper objects
around ActorRef, ActorContext, ActorSystem, Props and providing an Actor
implementation that just runs a Behavior.
2015-01-29 11:42:28 +01:00
Roland Kuhn
50d1569f37 Merge pull request #16634 from dimbleby/stable-priority-mailbox
Introduce stable priority mailboxes.
2015-01-28 15:10:24 +01:00
dch
8df81e6b72 Introduce stable priority mailboxes.
Similar to existing priority mailboxes, but these preserve FIFO ordering
for messages of equal priority.
2015-01-28 11:20:59 +00:00
Roland Kuhn
168cc74e8a =act #15865 add LogEvent.getMDC Java API 2015-01-27 18:34:07 +01:00
Konrad 'ktoso' Malawski
73cd1d7375 +act #15163 allows to suppress certain messages from being dead-letter-ed
Conflicts:
	akka-actor/src/main/scala/akka/actor/ActorRef.scala
2014-12-01 17:03:13 +01:00
Konrad Malawski
49d9082851 Merge pull request #16396 from kustosz/cancel-state-timeout-after-stopping-actor
=act #13894 cancel StateTimeout when FSM actor is stopped
2014-11-27 18:07:33 +01:00
Konrad Malawski
978200f09c Merge pull request #16361 from smlin/more-informative-timeout-exception
=act #16361 Added more information to AskTimeoutException
2014-11-27 14:22:28 +01:00
Ostapenko Evgeniy
dee5ad3deb =act #16361 Added more information to AskTimeoutException 2014-11-27 11:54:02 +03:00
kustosz
a0e7c89d80 =act #13894 cancel StateTimeout when FSM actor is stopped 2014-11-26 13:49:48 +01:00
Konrad 'ktoso' Malawski
8ed68ebf3e =act #16344 ActorPath validation now without regex, safer and faster 2014-11-23 22:41:28 +01:00
Konrad Malawski
7a6dab2319 Merge pull request #16254 from tomekl007/16245-issue
#16245 receive builder could match generic messages, problem with scala ...
2014-11-21 15:31:56 +01:00
tomekl007
7cd4a68cee +act #16245 receive builder works with generic messages
UnitPFBuilder use CaseStatements as previously, because apply is cast to exact type ( not ? extends T )
PFBuilder.match working with generic messages
2014-11-19 15:34:14 +01:00
Martin Eigenbrodt
69387bbc45 !act #16125 Timeout Calls through CircuitBreaker.
CircuitBreaker used to wait idenfinitly for a call and only compare
duration after the facts.
It will now increment its failure count early and throw a TimeoutException or return a Failure[TimeoutException].
2014-11-18 05:36:53 +01:00
Patrik Nordwall
96fb339081 +act #15956 Allow _ in ActorSystem name
(cherry picked from commit 7ef1334192de6f2c0cffbb81be620cdd56110ad5)
2014-11-11 09:50:19 +01:00
Endre Sándor Varga
3a2f4e14d4 =tcp #15766: Workaround for Windows to detect TCP abort
(cherry picked from commit 9340215)
2014-11-10 15:35:08 +01:00
Viktor Klang
439be7d99a =act #16152 - Elides the need to allocate an AkkaForkJoinTask for Mailbox-submission to registerForExecution,
by having Mailbox extend ForkJoinTask and using the fact that ForkJoinTask.exec when returning
false does not set completion on the task, so it is free to be resubmitted to the ForkJoinPool
without reinitialization.

Also adds the ability to use fork() when the currentThread is a worker thread of the pool that we want to execute on.

Adds a JMH benchmark for both the ping-pong performance and pipelined throughput.

Conflicts:
	project/AkkaBuild.scala
2014-10-29 15:04:48 +01:00
Björn Antonsson
64ead35a83 Merge pull request #15812 from akka/wip-15033-tcp-connection-shutdown-master-ban
(Validation Only) =act #15033 Added test to verify tcp connection actor termination
2014-09-08 07:13:33 +02:00
Björn Antonsson
1044195a2a =act Make SerializationCompatibilitySpec pass on Scala 2.11.x
* The serailization format of Option has changed between Scala 2.10.x and 2.11.x
2014-09-05 14:17:52 +02:00
Björn Antonsson
190abe8126 =act #15033 Added test to verify tcp connection actor termination 2014-09-05 12:12:07 +02:00
Konrad Malawski
bb0955d635 Merge pull request #15782 from ktoso/wip-props-with-nulls-ktoso
=act,rem #13946 fix handling of null parameters in Props
2014-09-01 16:50:03 +02:00