Commit graph

90 commits

Author SHA1 Message Date
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
Patrik Nordwall
323e5c80b5 Polish the API/SPI of remoting, see #2827
* Changed TransportAdapterProvider to support java impl
* Verified java impl of AbstractTransportAdapter and
  ActorTransportAdapter
* Privatized things that should not be public api
* Consistent usage of INTERNAL API marker in scaladoc
* Added some missing doc in conf
* Added missing SerialVersionUID
2013-02-10 17:47:43 +01:00
Patrik Nordwall
f9611178a3 Remove try ... catch constructs around invokations of tell, see #2870 2013-01-29 16:10:46 +01:00
Endre Sándor Varga
e0a9dd70ba Dead letters containing remote envelopes handled correctly #2959
- New DeadLetter class for handling remoting specific envelopes
 - Fixed error handling of name lookups
 - Name lookup is now handled via futures (future refactor opportunity)
2013-01-29 11:31:53 +01:00
Endre Sándor Varga
99adbdfab4 Changed and documented new remoting configuration #2593 2013-01-24 12:35:05 +01:00
Endre Sándor Varga
4f3469ed47 Fixed problems handling passive connections in Remoting #2878
- Fixed potential race in EndpointWrite when TakeOff is processed
- Reenabled accidentally disabled gremlin due to changed defaults
- Fixed EndpointRegistry incorrectly handling passive connections
2013-01-17 12:38:26 +01:00
Patrik Nordwall
265eaef1f6 Confirmation of throttle mode change, see #2877
* added some missing copyright headers
* Use ask inside ThrottlerTransportAdapter
* Change signature of managementCommand
2013-01-11 11:15:32 +01:00
Patrik Nordwall
dec4542f11 Revert "Propagate statusPromise down to the actual change in throttler, see #2877"
This reverts commit 9c1a00d020.
2013-01-08 20:58:13 +01:00
Patrik Nordwall
9c1a00d020 Propagate statusPromise down to the actual change in throttler, see #2877
* added some missing copyright headers
2013-01-08 13:11:53 +01:00
Viktor Klang
bf2593300b Minor restructuring of the EndpointWriter 2012-12-21 18:12:22 +01:00
Viktor Klang
40204de3e7 Minor cleanups in new remoting 2012-12-21 15:51:52 +01:00
Endre Sándor Varga
af5e756508 Fixes in NettyTransport, ThrottlerTransportAdapter, removal of Status #2844
- Promise was completed twice erroneously
 - Purged the trait Status from Transport, using failed futures instead
 - using intercept instead of try ... catch in tests
 - added termination hook for UntrustedSpec to shut down second system
 - Fixed threading issues in ThrottlerTransportAdapter
 - Removed nulls from exception constructors
 - replaced Promise.successful(...).future with Future.successful
2012-12-21 13:04:49 +01:00
Viktor Klang
c6878d8f12 Introducing OnlyCauseStackTrace trait 2012-12-20 12:59:48 +01:00
Viktor Klang
85f80467f4 Adding NoStackTrace to EndpointException to save a couple of meters of log output. 2012-12-20 11:37:29 +01:00
Endre Sándor Varga
4bd507646d Removed explicit usage of null as root cause for EndpointException 2012-12-18 14:30:05 +01:00
Endre Sándor Varga
4c7691fe40 Removed implicit conversions from ActorRef to AssociationEventListener and HandleEventListener 2012-12-18 14:30:04 +01:00
Endre Sándor Varga
b886fcd54c Added clarifications to driver-adapter stack building method 2012-12-18 14:29:25 +01:00
Endre Sándor Varga
ddcb2192eb Improved protocol driver stack initialization sequence 2012-12-18 14:28:50 +01:00
Endre Sándor Varga
8dc60cca4e - Added AddressUrlEncoder to centralize address string encoding at one place
- Removed HasTransport trait from NettyHelpers
- Fixed unsafe initialization of boss and worker executors in netty driver when using an akka dispatcher
2012-12-18 14:27:00 +01:00
Endre Sándor Varga
d46a4b6916 - Removed usage of null from Endpoint
- Fixed race resolution logic in FailureDetectorRegistry to not create unnecessary instances
2012-12-18 14:24:37 +01:00
Endre Sándor Varga
9f006789fc Made RemotingEvents sealed and final 2012-12-18 14:23:38 +01:00
Endre Sándor Varga
0705d47a88 Streamlined configuration, transport adapters and FailureInjector
- Transports no longer uses raw ActorRefs as listeners but proper interfaces.
 - Added managementCommand support to Transports
 - Added support for dynamically loadable transport adapters
 - Added throttler/failure injector transport adapter
 - added actor based adapter support
 - Changed configuration method of multiple transports - Fixed tests to work with the new remoting
2012-12-03 10:06:38 +01:00
Endre Sándor Varga
5b96c28acd Fixed according to review comments. 2012-11-22 13:33:48 +01:00
Endre Sándor Varga
a0a860f0f7 Several fixes of the Remoting and Endpoint
- correct registration of endpoints
 - passive endpoints now registered to detect parallel incoming connections
 - special care to avoid multiple existing endpoints for the same remote addresses (concurrent inbound or outbound communication leads to out-of-order delivery)
2012-11-21 16:39:04 +01:00
Endre Sándor Varga
d03d98b6ab Removed cross layer dependencies
- akka protocol treats upper layer messages as raw bytes now
 - deserialization for received messages no longer use localAddressForRemote
2012-11-21 15:58:01 +01:00
Endre Sándor Varga
5f9253b79e New Remoting implementation (iteration 3) #2053
- Asynchronous lockless remoting
 - Pluggable transport drivers
 - Multiple transport support
 - Simplified lifecycle events
 - Support for netty based TCP, SSL+TCP and UDP support
 - Updated Akka protocol with soft-state connections and failure detection
 - Refactored failure detectors (currently duplicated from cluster)
2012-10-29 16:32:15 +01:00