Commit graph

75 commits

Author SHA1 Message Date
Patrik Nordwall
a1d7199a42 =rem #16623: Fix concurrent reliable delivery actors
(cherry picked from commit 4f7c90660226b05edc3581454d18fd53a4762802)

Conflicts:
	project/AkkaBuild.scala
2015-01-19 10:03:40 +01:00
Patrik Nordwall
4a505cdc81 +rem #15530 Include cause in some remote log messages 2014-11-11 08:15:37 +01:00
Patrik Nordwall
0fd9198f5d +act #13992 Improve identify replies of wildcard selections
(cherry picked from commit 4747b18d66fafb5699168288b09b7f39da5c2e4e)

Conflicts:
	akka-actor/src/main/scala/akka/actor/ActorSelection.scala
	project/AkkaBuild.scala
2014-06-23 12:19:03 +02:00
Endre Sándor Varga
0e46db47d9 =rem #15109: Separate field in Pass for refuseUid
- Fixes #15109
  - also fix GotUid race with InvalidAddress supervision event
(cherry picked from commit 3fe83fa)
2014-05-15 14:33:16 +02:00
Patrik Nordwall
a97de7db90 =rem #13960 #13989 #13742 #13985 Optimize EndpointWriter
* Replace stash with internal bufferi, j.u.LinkedList
* Replace FSM with become
* Adaptive backoff, important to backoff, but not for too long,
  depends on environment and use case
* Prioritize heartbeat messages from remote watcher and cluster
  failure detector
* Use payload messages as heartbeats for transport failure detector,
  change transport failure detector to be based on absolute timeout,
  see ticket #13989 and #13742
* Log remote disassociate from transport failure detector,
  see ticket #13985
* Add benchmark sample in akka-sample-remote-scala
2014-04-24 13:39:58 +02:00
Roland Kuhn
b97a257f9a =rem #3930 part 2: track UID of associated systems
for proper clean-up of the old association (including the writer) when
the restarted system connects before the old association has been torn
down
2014-03-21 20:43:14 +01:00
dario.rexin
2cbad298d6 =all #3858 Make case classes final 2014-03-07 13:20:01 +01:00
Endre Sándor Varga
e69d068cc0 =rem #3879: Stop sysmsg redelivery for unknown systems after a timeout 2014-02-19 14:44:19 +01:00
Patrik Nordwall
35b1d6879a =rem #3867 Make sure endpointWriter is terminated before ungate
* actor name [endpointWriter] is not unique
* The problem was that the test used 100ms until ungate and
  that made it possible for the endpointWriter to not be
  completely terminated (and removed) before Ungate and
  new Send in idle state, which created new endpointWriter
* I could reproduce it with a sleep in EndpointWriter.postStop
* The solution is to start the scheduled Ungate after Terminated
  has been received
2014-02-10 14:41:48 +01:00
Adam Voss
cce29dfa51 Changes all occurances of Typesafe copyright to extend to 2014. 2014-02-04 21:20:09 -06:00
Patrik Nordwall
a11fb1dafc =act #3572 Add parens to sender
* because it is not referentially transparent; normally we reserved parens for
  side-effecting code but given how people thoughtlessly close over it we revised
  that that decision for sender
* caller can still omit parens
2014-01-17 18:21:14 +01:00
Endre Sándor Varga
cf58402dd9 !rem #3765: Change the defaults for remoting
- removed retry-window and related settings
 - removed gate-invalid-addresses-for
 - gate is now mandatory
 - remoting has a dedicated dispatcher by default
 - updated tests to work with changed timings
 - added doc section for association lifecycle
2014-01-17 11:29:22 +01:00
Endre Sándor Varga
c9fcc5eb5c +rem: Implement Quarantine piercing
- Added refuseUid support in Akka protocol and EndpointManager
 - The AkkaProtocolTransport interface is now a first-class citizen in remoting and endpoint actors
 - The AkkaProtocolTransport interface is now a first-class citizen in endpoint actors
2013-12-11 15:38:39 +01:00
Björn Antonsson
7c8fcc4c61 Merge pull request #1840 from akka/wip-3633-failed-systemmessagedeliverynopassive-ban
=rem #3633 Fix race between EndpointWriter Terminated and TakeOver
2013-12-04 01:59:38 -08:00
Björn Antonsson
838e8ffbc1 =rem #3633 Fix race between EndpointWriter Terminated and TakeOver 2013-12-02 12:23:11 +01:00
Patrik Nordwall
67393c0fb6 +rem #3665 Allow trusted selections in untrusted-mode 2013-11-14 14:08:46 +01:00
Patrik Nordwall
f89422c18e =act,rem #3073 Make ActorSelection faster 2013-11-06 12:41:53 +01:00
Endre Sándor Varga
b39ab37045 !rem #3646: Optimize sending of Ack messages 2013-10-14 10:30:33 +02:00
Björn Antonsson
fdde09690a =rem #3643 Remove warning message from normal remote system shutdown.
Conflicts:
	akka-remote/src/main/scala/akka/remote/Remoting.scala
	project/AkkaBuild.scala
2013-10-10 14:17:32 +02:00
Endre Sándor Varga
9fcae8ae5e =rem #3606 Properly reset system message buffer between remote sys restarts 2013-09-18 14:16:10 +02:00
Endre Sándor Varga
b566e9393d =act, rem, clu #3521: make serialize-messages work with core modules 2013-08-27 11:05:54 +02:00
Endre Sándor Varga
132c30d6cf +rem #3504: Toned down error logging and made loglevel configurable 2013-08-26 15:44:47 +02:00
Patrik Nordwall
637598a28b =rem #3527 Take actor system uid into consideration in remote watch
* When actor system was restarted quickly the new system replied to
  heartbeats and Terminated was never triggered for actors in old
  system.
* Solved by sending an extra Watch system message when first hearbeat
  is received for an address and when a change of system uid is detected.
2013-08-22 11:03:02 +02:00
Endre Sándor Varga
cc15919512 =rem #3527 Throw away system message delivery state when new UID from a remote Address is detected 2013-08-22 11:02:51 +02:00
Endre Sándor Varga
01b3be1242 +rem #3485 Make dispatcher for all remoting actors configurable 2013-08-20 14:01:30 +02:00
Endre Sándor Varga
89a3454245 =rem #3555: Wrong and superfluous match in EndpointWriter 2013-08-20 11:01:42 +02:00
Roland Kuhn
23060f1d03 Merge pull request #1573 from drewhk/wip-3475-always-log-error-remoting-drewhk
Error level remoting events are logged by default #3475
2013-07-04 04:58:11 -07:00
Endre Sándor Varga
d30c5bcef7 Logging of transient errors in remoting attempt 2. 2013-07-01 12:51:15 +02:00
Endre Sándor Varga
634d60d027 ! remoting: EndpointWriter uses mailbox requirements instead of dispatchers #3480 2013-07-01 12:16:06 +02:00
Endre Sándor Varga
e6e5be859b Fixes for leaked connection
- Also introduces reason in the Disassociate message
 - Reliable delivery now transitions from idle to active if there are pending system msgs
 - Minor fix in merging receive buffers (reduces resends)
 - Tweaked WireFormat
 - Removed busy-wait in startup
 - throwing the proper exception type in EndpointReader
 - InvalidAssociationException extends NoStackTrace
2013-06-20 17:28:26 +02:00
Endre Sándor Varga
46fb44737c Proper handoff of readers #3286 2013-06-03 15:59:05 +02:00
Patrik Nordwall
fbadb89962 Merge pull request #1513 from akka/wip-3177-remote-exc-msg-patriknw
Improve logging in remoting, see #3177
2013-06-03 02:09:02 -07:00
Patrik Nordwall
1dbe65f53e Improve logging in remoting, see #3177
* Supress TimeoutReason logging
* Add logTermination in FSM
* Improve some error messages, incl making them unique
* Cookie only logged if debug enabled
2013-05-30 21:37:57 +02:00
Patrik Nordwall
07baf05bae harmonize MyActor.props pattern, see #3418 2013-05-30 14:50:46 +02:00
Roland
92db59183e make LocalScope mean “purely local” and avoid Props serialization check, see #3210 2013-05-29 23:36:39 +02:00
Endre Sándor Varga
c36ff9717d Quarantining completely disables outbound attempts #3285
- also a bugfix for use-passive = off
2013-05-24 17:21:40 +02:00
Viktor Klang
1c2909acc1 #3323 - Adding support for akka.remote.log-sent-messages 2013-05-20 14:35:51 +02:00
Patrik Nordwall
3d1c0a7325 Connection retries to shutdown node, see #3326
* In EC2 connection time out is around 1 minute. A few messages
  were sent after quarantining and these caused endless restarts,
  and connect attempts with 1 minute interval.
* This change makes sure that the endpoint is stopped after the first
  failed connection attempt.
* Changed default settings for netty connection-timeout, and matching
  retry window to allow for 3 restarts
2013-05-13 17:09:30 +02:00
Patrik Nordwall
a9cde60bee Logging of the size of different message types.
* Maximum detected size per message type is logged once
* Default configuration disables this feature
2013-05-03 15:49:42 +02:00
Björn Antonsson
539df2e98a Enforce mailbox types on System actors. See #3273 2013-05-03 11:05:32 +02:00
Endre Sándor Varga
33e2710bf9 Hooked in quarantining 2013-04-19 11:39:28 +02:00
Endre Sándor Varga
2b0a27be9e Added acknowledged delivery of system messages 2013-04-18 16:10:20 +02:00
Patrik Nordwall
887af975ae Deprecate actorFor in favor of ActorSelection, see #3074
* Deprecate all actorFor methods
* resolveActorRef in provider
* Identify auto receive message
* Support ActorPath in actorSelection
* Support remote actor selections
* Additional tests of actor selection
* Update tests (keep most actorFor tests)
* Update samples to use actorSelection
* Updates to documentation
* Migration guide, including motivation
2013-04-08 18:11:52 +02:00
Björn Antonsson
a4ab7a9841 Cleaning up the ActorRef serialization according to review. See #3137 2013-04-03 10:49:38 +02:00
Björn Antonsson
33080a4155 Correctly serialize local actor refs from other actor systems. See #3137 2013-04-03 10:32:13 +02:00
Rich Dougherty
88f7e28c6b Merge pull request #1269 from akka/wip-3070-drop-association-rich
Drop unserializable and oversized messages, preserving association. Fixes #3070
2013-03-27 14:51:02 -07:00
Rich Dougherty
a041a295ed Drop unserializable and oversized messages, preserving association. Fixes #3070 2013-03-27 16:55:13 +13:00
Endre Sándor Varga
f8c3717ca1 Changed Failed to be a SystemMessage
- Moved system messages to their own package.
 - All queueing operations are now hidden behind a SystemMessageList value class
 - Introduced dual SystemMessageList types to encode the ordering in the type.
   - Protects against accidentally missed reverse calls or accidentally reversed lists
   - Makes ordering expectations by fields/parameters explicit
 - Fixed serialization tests
 - Fixes to logging in HierarchyStressSpec
2013-03-22 12:02:31 +01:00
Patrik Nordwall
a67fa18f8d Reduce unwanted logging from remoting, see #2826
* Handle logging in EndpointManager supervisorStrategy
* Added some more exception types to be able to differentiate
  failures
2013-03-11 13:36:00 +01:00
Endre Sándor Varga
330b1cd627 Hardened flushing code in Remoting #3036 2013-02-26 11:10:47 +01:00