Commit graph

173 commits

Author SHA1 Message Date
Björn Antonsson
179faba453 =all #3837 Make akkaScalaNightly compile on scala 2.11.0-M8 2014-01-31 14:13:02 +01:00
Patrik Nordwall
82107a8d86 =rem #2966 Harden RemoteNodeShutdownAndComesBackSpec 2014-01-24 12:24:10 +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
Björn Antonsson
003609c9c5 =pro #3759 Changed to using non-deprecated ScalaTest Matchers 2013-12-18 11:32:51 +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
00a268b6b3 =pro #3753 Override dependency versions from command line 2013-12-03 16:47:10 +01:00
Björn Antonsson
28b5f1039d =all #3448 Newer Scalariform running on more files 2013-11-04 11:05:07 +01:00
Patrik Nordwall
ebadd567b2 !act,rem,clu #3549 Simplify and enhance routers
* Separate routing logic, to be usable stand alone, e.g. in actors
* Simplify RouterConfig, only a factory
* Move reading of config from Deployer to the RouterConfig
* Distiction between Pool and Group router types
* Remove usage of actorFor, use ActorSelection
* Management messages to add and remove routees
* Simplify the internals of RoutedActorCell & co
* Move resize specific code to separate RoutedActorCell subclass
* Change resizer api to only return capacity change
* Resizer only allowed together with Pool
* Re-implement all routers, and keep old api during deprecation phase
* Replace ClusterRouterConfig, deprecation
* Rewrite documentation
* Migration guide
* Also includes related ticket:
  +act #3087 Create nicer Props factories for RouterConfig
2013-10-16 09:27:13 +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
Patrik Nordwall
52f7d2d478 =rem #3566 Fix failing RemoteNodeRestartDeathWatchSpec
* Subject actor in freshSystem was not started when the "shutdown"
  message was sent. Solved by retry.
2013-09-05 11:26:41 +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
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
Björn Antonsson
4a2b6effb3 =pro #3552 Upgrade ScalaTest to 1.9.2-SNAP2 for dbuild
* This can't go into 2.2.x since ScalaTest 1.9.2-SNAP2 has source incompatible changes and the dependecy in akka-multi-node-node-testkit would force people to upgrade.
2013-08-19 15:08:29 +02:00
Björn Antonsson
e664d4a333 Longer timeout in RemoteDeliverySpec. See #3451 2013-06-20 15:26:12 +02:00
Patrik Nordwall
ae75137cd8 Verify that messages are not dropped, see #3390 2013-06-03 11:26:39 +02:00
Björn Antonsson
3f158385b9 Add a barrier in RemoteNodeDeathWatchSpec to compensate for connection time. See #3390 2013-05-30 11:55:31 +02:00
Patrik Nordwall
90a5f0c044 Merge pull request #1445 from akka/wip-3340-RemoteNodeDeathWatchSpec-patriknw
Missing barrier coordination in RemoteNodeDeathWatchSpec, see #3340
2013-05-17 05:00:30 -07:00
Patrik Nordwall
6317d81f39 Missing barrier coordination in RemoteNodeDeathWatchSpec, see #3350 2013-05-17 13:59:02 +02:00
Patrik Nordwall
f2ff09771c Shutdown ordering issue in RemoteDeploymentDeathWatchSpec, see #3334 2013-05-16 18:10:56 +02:00
Patrik Nordwall
7628889b43 Changed design of RemoteWatcher due to cleanup race, see #3265
* The problem was a race caused by HeartbeatReq sent out, and
  the watchee terminated immediately. That caused the RemoteWatcher
  peers watching each other without any other watch registered.
  It is racy.
* Instead of one-way heartbeats from the side beeing watched I
  changed to ping-pong style. That makes the problem go away
  and simplifies a lot of things in RemoteWatcher.
2013-05-04 17:35:12 +02:00
Roland Kuhn
927a00ee5a Merge pull request #1382 from drexin/wip-drexin-remove-deprecations
Removed lots of deprecation warnings caused by usages of deprecated Props creators
2013-04-30 05:41:11 -07:00
Patrik Nordwall
f09d3fc393 Timing issue in RemoteNodeDeathWatchSpec, see #3265
* The EndHeartbeatReq was probably not triggered within
  the 3 seconds timeout
2013-04-29 08:53:22 +02:00
Dario Rexin
cfb1dfa745 removed deprecation warnings from akka-remote-tests 2013-04-26 20:54:33 +02:00
Patrik Nordwall
551e2d1321 Stop heartbeating when watching node crash, see #3265 2013-04-25 21:25:46 +02:00
Patrik Nordwall
19283207ff Additional coordination of shutdown in ClusterDeathWatchSpec, see #3255
* Added testconductor shutdown of actor system
* Renamed previous shutdown to exit
2013-04-24 11:58:07 +02:00
Endre Sándor Varga
d0cd2be542 Fixed misnamed barrier 2013-04-22 14:00:30 +02:00
Endre Sándor Varga
a226c2ba2e NewRemoteActorSpec is racy, but has to work even if the race happens
- timeout of the test was small, needs time for FD to trigger
2013-04-19 11:36:36 +02:00
Patrik Nordwall
4606612bd1 Reliable remote supervision and death watch, see #2993
* RemoteWatcher that monitors node failures, with heartbeats
  and failure detector
* Move RemoteDeploymentWatcher from CARP to RARP
* ClusterRemoteWatcher that handles cluster nodes
* Update documentation
* UID in Heartbeat msg to be able to quarantine,
  actual implementation of quarantining will be implemented
  in ticket 2594
2013-04-17 19:42:51 +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
Patrik Nordwall
f4d59383d7 Log actor failures in supervisor, see #2824
* To make it possible to override with application
  specific logging, or mute logging for certain failures
* Changed log level of Resume failures to WARNING, which
  caused all the changes to the tests
2013-03-11 13:33:37 +01:00
Patrik Nordwall
e8f90a6605 Make RandomRoutedRemoteActorSpec lucky, see #3061
* The failure was probably because of bad luck that no
  message was routed to one routee (unlikely things happen).
2013-02-22 15:23:19 +01:00
Roland
c3b363c9b3 move multi-node-testkit into its own module, see #2981 2013-02-11 14:37:37 +01:00
Patrik Nordwall
a651875020 Use configured hostname instead of getHostName, see #2997
* getHostName may trigger reverse name lookup
* use the configured hostname in all places
2013-02-06 14:11:15 +01:00
Patrik Nordwall
2476831705 Rename event-handlers to loggers, see #2979
* Rename config akka.event-handlers to akka.loggers
* Rename config akka.event-handler-startup-timeout to
  akka.logger-startup-timeout
* Rename JulEventHandler to JavaLogger
* Rename Slf4jEventHandler to Slf4jLogger
* Change all places in tests and docs
* Deprecation, old still works, but with warnings
* Migration guide
* Test for the deprecated event-handler config
2013-02-05 11:19:02 +01:00
Endre Sándor Varga
8795c8dd3c Reversed order in which adapters are applied from config
Needed to be aligned with the new scheme format
2013-01-25 11:42:57 +01:00
drewhk
fe22c7515f Reversed protocol scheme order in Addresses 2013-01-24 17:23:51 +01:00
Endre Sándor Varga
99adbdfab4 Changed and documented new remoting configuration #2593 2013-01-24 12:35:05 +01:00
Björn Antonsson
cd9fae81e5 Making test more DRY. See #2862 2013-01-18 13:58:46 +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
Björn Antonsson
a694946f19 Clean up network connections from the test coordinator and player. See #2862 2013-01-18 10:28:21 +01:00
Viktor Klang (√)
6b638db65e Merge pull request #1006 from akka/wip-2879-copyright2013-√
#2879 - updating copyright info
2013-01-14 04:59:29 -08:00
Patrik Nordwall
8a880c16d2 Adjust protocol pattern in LogRoleReplace for new remoting 2013-01-09 15:33:28 +01:00
Viktor Klang
adfeb2c1f0 #2879 - updating copyright info 2013-01-09 11:38:00 +01:00
Patrik Nordwall
f876d921ff fix broken rename of nanoTimeOfLastSend 2013-01-04 13:07:56 +01:00
Patrik Nordwall
48c6374721 Clean shutdown of ReliableProxySpec, see #2846
* Solved by adding missing Dequeue in throttler
* Changed to FSM timers in throttler
* Some boy scouting
2013-01-04 12:54:54 +01:00
Roland
6c31d5313e rename AkkaSpec.{atTermination => afterTermination} 2013-01-03 17:17:12 +01:00
Viktor Klang
da84f03e46 #2841 – remove stack traces from new remoting exceptions 2012-12-20 13:57:53 +01:00
Endre Sándor Varga
66ccefe00e Workaround for tests relying on accurate throttling
- increased default capacity of token bucket in testconductor (Player)
2012-12-19 15:47:30 +01:00
Endre Sándor Varga
4dcb38c758 Changed to enabled retry gate by default, when testtransport is used 2012-12-18 18:56:18 +01:00