Commit graph

75 commits

Author SHA1 Message Date
Endre Sándor Varga
f69a94a3f4 =rem 3933: Quarantine piercing should not lose quarantine marker
(cherry picked from commit 7c8160b)
2014-03-25 15:10:45 +01: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
Patrik Nordwall
514e0cc297 !rem #3920 Remove LogRemoteLifecycleEvents 2014-03-14 14:12:36 +01:00
Patrik Nordwall
67925cb94e =act, rem #2556 Optimize subscriptions of AddressTerminated
* unsubscribe in eventStream is too slow when using many actors
  that are watching remote actors, and becomes a problem for example
  when shutting down such a system
* Previous eventStream solution:
  Stopping 20000 actors took 50355 ms
* This solution:
  Stopping 20000 actors took 764 ms
2014-03-12 10:17:34 +01:00
dario.rexin
2cbad298d6 =all #3858 Make case classes final 2014-03-07 13:20:01 +01:00
Roland Kuhn
b5eeb08fde +act #3900 make systemActorOf available to Extensions 2014-03-03 12:00:25 +01:00
Patrik Nordwall
aa6bdd197e =rem #3870 Stop re-delivery of system messages when watching non-existing sys
* We don't know the UID so we can't quarantine, but we can stop the endpoint
  writer and drop outstanding system messages
2014-02-13 11:27:53 +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
615c6b572c =* #2966 Reduce warnings from compile, test, scaladoc 2014-01-24 11:47:57 +01: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
838e8ffbc1 =rem #3633 Fix race between EndpointWriter Terminated and TakeOver 2013-12-02 12:23:11 +01: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
Patrik Nordwall
dc9fe4f19c !clu #2307 Allow transition from unreachable to reachable
* Replace unreachable Set with Reachability table
* Unreachable members stay in member Set
* Downing a live member was moved it to the unreachable Set,
  and then removed from there by the leader. That will not
  work when flipping back to reachable, so a Down member must
  be detected as unreachable before beeing removed. Similar
  to Exiting. Member shuts down itself if it sees itself as
  Down.
* Flip back to reachable when failure detector monitors it as
  available again
* ReachableMember event
* Can't ignore gossip from aggregated unreachable (see SurviveNetworkInstabilitySpec)
* Make use of ReachableMember event in cluster router
* End heartbeat when acknowledged, EndHeartbeatAck
* Remove nr-of-end-heartbeats from conf
* Full reachability info in JMX cluster status
* Don't use interval after unreachable for AccrualFailureDetector history
* Add QuarantinedEvent to remoting, used for Reachability.Terminated
* Prune reachability table when all reachable
* Update documentation
* Performance testing and optimizations
2013-09-11 13:10:29 +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
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
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
drewhk
beed693c1b Merge pull request #1473 from drewhk/wip-proper-sync-shutdown-remoting-drewhk
Shutdown of transports  are now synchronous with system shutdown #3368
2013-05-23 07:03:24 -07:00
Endre Sándor Varga
4c3853a999 Shutdown of transports are now synchronous with system shutdown #3368 2013-05-23 14:50:31 +02:00
Patrik Nordwall
0464c524be Error reporting when starting remoting with wrong configuration, see #3373
* Handle failure from listens
* This also solves the missing error reporting when binding to occupied
  port, see #3319
2013-05-22 15:39:45 +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
Björn Antonsson
539df2e98a Enforce mailbox types on System actors. See #3273 2013-05-03 11:05:32 +02:00
Dario Rexin
8a2e522a6e removed deprecation warnings from akka-remote 2013-04-26 21:07:38 +02:00
Endre Sándor Varga
25c75f9e7e Fixed bug in outbound quarantine 2013-04-19 15:31:03 +02:00
Endre Sándor Varga
efbc0a781f Quarantine is in wrong block 2013-04-19 13:36:39 +02:00
Endre Sándor Varga
444b73bec6 Fixed review comments
- Using Duration.Undefined
 - Quarantine message is actually handled ;)
2013-04-19 12:33:12 +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
bc06a266b8 Supress stack trace for exc thrown when remoting is stopped 2013-04-08 17:16:40 +02:00
Viktor Klang (√)
641e499cc4 Merge pull request #1287 from akka/wip-2970-lightweight-ec-form-promiseactorref-√
#2970 - Removing scheduler and dispatcher from ARP and reimplementing P...
2013-04-03 11:23:54 -07:00
Viktor Klang
fcfe7b4617 #2970 - Removing scheduler and dispatcher from ARP and reimplementing PromiseActorRef to use an internal calling thread EC 2013-04-03 19:12:03 +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
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
939893ef5f Preserve sender when sending to deadLetters, see #3009 2013-02-04 12:41:58 +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
Patrik Nordwall
5dc108567d Style change of def starting with if
* When a def starts with if and is not a oneliner the if
  should be on a new line.
* The reason is that it might be easy to miss the if when
  reading the code.
2013-01-18 13:28:49 +01:00
drewhk
c5685a0855 Merge pull request #1031 from drewhk/wip-2780-removal-of-old-remoting-drewhk
Removed remaining parts of the old remoting #2780
2013-01-18 03:10:57 -08:00