Commit graph

9485 commits

Author SHA1 Message Date
Patrik Nordwall
12ff07f025 Adjusted tests to latest testconductor, remote deploy still fails. See #2069 2012-05-23 09:26:20 +02:00
Patrik Nordwall
a211e4daf6 Adjusted tests to latest testconductor, remote deploy still fails. See #2069 2012-05-22 16:35:43 +02:00
Patrik Nordwall
dbb2dd5c54 Merge branch 'wip-testconductor-∂π' into wip-2069-DirectRoutedRemoteActorMultiJvmSpec-patriknw 2012-05-22 12:55:11 +02:00
Roland
e825a8ac4f switch MultiNodeSpec to use RoleName type when referring to participants
- also add MultiNodeConfig base class for conveniently declaring a test
  setup including roles and (node specific) config settings
2012-05-18 18:44:53 +02:00
Roland
e99c938528 switch to Björn’s new multi-jvm setup (i.e. remove system properties) 2012-05-18 16:26:48 +02:00
Roland
4217d639f9 add utility for fixing up broken PROTOC code (and apply it) 2012-05-18 16:00:33 +02:00
Roland
c86051505b wrap up MultiNodeSpec, see #1934 and #2063
- restructure message classes in sealed traits according to message flow
  direction and include confirmed/unconfirmed status in the type
- add GetAddress query for obtaining the remote transport address of
  another test participant
- add reconnects to Player
- add small DSL with runOn(node...), ifNode(node...)(<true>)(<false>)
  and node(<node>):ActorPath
- rewrite TestConductorSpec to use that DSL and run within a single test
  procedure instead of separate NodeX classes
- hook up that test into current multi-jvm infrastructure temporarily
  for testing (will use Björn’s new remote-multi-jvm stuff later)
2012-05-18 15:55:04 +02:00
Patrik Nordwall
14dc08b75a Added failing DirectRoutedRemoteActorMultiJvmSpec. See #2069 2012-05-14 14:26:32 +02:00
Roland
439f653427 add some tests for BarrierCoordinator and Controller 2012-05-11 18:28:20 +02:00
Roland
160aa73066 scaladoc for TestConductor 2012-05-10 21:08:06 +02:00
Roland
d931a6e727 break out TestConductor stuff into akka-remote-tests project 2012-05-10 10:56:52 +02:00
Björn Antonsson
9a33f468c0 Adding a doc diagram for the Test Conductor Extension 2012-05-08 13:56:24 +02:00
Roland
e950045015 handle barrier failures better 2012-05-08 11:08:43 +02:00
Roland
33cea733a3 rename mkPipeline => createPipeline 2012-05-08 10:05:14 +02:00
Roland
d8268f8e6f fix BuilderParent in generated TestConductorProtocol.java 2012-05-07 18:12:53 +02:00
Roland
f81184236f wait for initial crew before starting the party
- the Controller is started with the required initial number of
  participants
- if that is >0, it will hold off sending Done to the clients until that
  number has connected, then set it to zero
- if that is <=0, send Done back immediately upon connect
2012-05-07 08:04:15 +02:00
Roland
0076bddb52 optimize partial message scheduling
- split only right before send (if necessary)
- do not reschedule Tick if that has already been done, because the head
  of the queue does not change so the old data are still correct
- make test a bit less fickle wrt. timing
2012-05-07 07:36:02 +02:00
Roland
a351e6ad9f implement more precise bandwith throttling
- will keep track of theoretical packet boundaries and send on timer
  tick or send request according to actual time
- will split packets if calculated release time is >100ms into the
  future (configurable) to simulate proper trickling
2012-05-05 22:14:42 +02:00
Roland
c68df0635f add previously forgotten TestConductorTransport 2012-05-05 15:16:21 +02:00
Roland
9266ac451b integrate NetworkFailureInjector and add first test
- rework socket pipeline to transform protobuf into case classes and
  back
- introduce NetworkOp messages for that purpose
- make API asynchronous (because it is, really) and add Done
  notification for all server operations; enter(...) is still
  synchronous, because that is its only purpose in life
- factor out mkPipeline in NettyRemoteTransport, enabling the very slick
  TestConductorTransport (essentially a one-liner)
- switch NetworkFailureInjector from Channel{Up,Down}streamHandler to
  subclassing SimpleChannelHandler, because otherwise deadlocks
  occurred, not sure why (but SCH is the recommended way from the netty
  docs, so there may well be a reason)
2012-05-04 22:33:08 +02:00
Roland
0314b9abbb fix bug in FSM when manually rescheduling non-recurring timer, see #2043 2012-05-04 22:32:36 +02:00
Roland
5cf0fa66f8 TestConductor: convert to Akka Extension and add test
- make start-up synchronous and explicit for client and server
- server can be queried for actual port, client requires explicit port
- simple multi-jvm-test for verification of TestConductor barriers
2012-05-03 20:48:27 +02:00
Roland
6c786d20b8 porting to 2.0, making it compile: UNTESTED! 2012-05-02 21:56:26 +02:00
Roland
418b11d553 first step towards TestConductor
- it compiles
- server side ("Conductor") functions almost there
- client side ("Player") sketched, but missing network failures
- no internal failure handling whatsoever, waiting for Project DeathWatch
- not yet possible to shutdown, need to kill VM
- next step is to hook into the NettyRemoteSupport for failure injection
2012-03-26 13:33:27 +02:00
Roland
84e475c1e0 fix TestKit class scaladoc 2012-03-26 12:12:29 +02:00
Roland Kuhn
0b9d2e8260 Merge pull request #365 from jfim/patch-1
Added imports for things moved to akka.pattern._
2012-03-23 11:17:18 -07:00
Jonas Bonér
d18fc7b7ce Removed obsolete FIXME.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-03-23 12:08:37 +01:00
Jonas Bonér
7c03f8df6c Renamed 'Node' to 'Cluster'.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-03-22 23:04:04 +01:00
Jonas Bonér
f7ca01a26b Merge branch 'master' of github.com:akka/akka
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-03-22 17:10:43 +01:00
Jonas Bonér
576bc38ade Added spec for testing various ways of connecting two clusters into one single cluster.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-03-22 16:23:36 +01:00
Jonas Bonér
b0279f071a Cleaned up cluster membership tests.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-03-22 16:22:28 +01:00
Raymond Roestenburg
019357eae5 Merge pull request #344 from akka/wip-camel
Rebased and squashed all changes to akka camel so far from Piotr and Ray
2012-03-21 13:41:41 -07:00
Björn Antonsson
b922fa0b06 Multi-JVM Stop actors before we shut down nodes to avoid warning messages. 2012-03-20 15:25:29 +01:00
Peter Vlugter
3223a94d2c Only build the akka sbt plugin against scala 2.9.1 2012-03-19 13:10:11 +13:00
RayRoestenburg
f74616f828 Processed review wip-camel pull request 344 2012-03-17 21:23:06 +01:00
Piotr Gabryanczyk
4d6511c5c6 Rebased and squashed all changes to akka camel so far from Piotr and Ray 2012-03-17 09:19:57 +01:00
Viktor Klang
43febd0b65 Making sure that we only publish the truth about watch/unwatch 2012-03-16 16:54:00 +01:00
Viktor Klang
a7e8c622a7 #1902 - Adding docs in Serialization Java/Scala for deep serialization using EventSourcing 2012-03-16 15:57:49 +01:00
Viktor Klang
8994a14725 #1906 - Clarified the development process 2012-03-16 15:29:41 +01:00
Viktor Klang
df48070239 merge in docs change wrt ScalaDoc links 2012-03-16 13:58:33 +01:00
Viktor Klang
9cee78bc54 #1904 - Clearing up performance aspects of using ask 2012-03-16 13:53:32 +01:00
Jonas Bonér
80da7b5e36 Muted exceptions sent to the TestEventListener in the ClusterSpec.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-03-16 00:17:43 +01:00
Jonas Bonér
1ae2c68d2f Added config options for run frequency of the different periodic node tasks.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-03-15 23:00:20 +01:00
Jonas Bonér
50d11593c9 Added 'ClusterSpec' abstract class with 'awaitConvergence' method to get rid of most 'Thread.sleep()' calls. Updated all cluster specs. Now works more reliable.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-03-15 21:25:55 +01:00
Viktor Klang
807843591c Removing superceded comment 2012-03-15 14:48:57 +01:00
Viktor Klang
fc3d0c0715 Removing dead code 2012-03-15 11:37:01 +01:00
Jonas Bonér
fdb9743dc6 Merge branch 'wip-cluster-membership-jboner' 2012-03-14 15:31:41 +01:00
Jonas Bonér
f5da25fab4 fixed misspelling 2012-03-14 14:09:09 +01:00
Viktor Klang
a63e9f604b #1894 - Switching to jsr166y.ThreadLocalRandom 2012-03-14 13:05:57 +01:00
Viktor Klang
c752f86ae3 Merge branch 'master' into wip-1903-fix-smallest-mailbox-√ 2012-03-14 13:01:38 +01:00