Commit graph

12466 commits

Author SHA1 Message Date
Patrik Nordwall
309b460367 Test state transitions and actions step-by-step, see #2223 2012-06-15 13:35:52 +02:00
Patrik Nordwall
11c85b84b9 Fail fast in cluster tests if prevous step failed 2012-06-15 13:35:52 +02:00
Patrik Nordwall
08c47591c0 Use max of periodic-tasks-initial-delay and the interval 2012-06-15 13:35:52 +02:00
Patrik Nordwall
f7a01505ba Correction of gossip merge when joining, see #2204
The problem:
* Node that is Up joins a cluster and becomes Joining in that cluster
* The joining node receives gossip, which results in conflict,
  merge results in Up
* It became Up in the new cluster without passing the ordinary leader
  action to move it to Up

The solution:
* Change priority order of Up and Joining so that Joining is used when
  merging
2012-06-15 13:35:52 +02:00
viktorklang
5f77590eb8 Merge pull request #476 from dev10/ticket_1978
Added changes to Netty pipelines to support SSL/TLS. Fixes #1978
2012-06-15 04:34:08 -07:00
Viktor Klang
cd0c89d939 Adding -feature and trying to find scala versions for our akka-actor-test dependencies. Also updating the version of Scalatest, specs2 and junit 2012-06-15 13:04:10 +02:00
Oliver Schulz
2ed00f0936 Removed some superfluous braces. 2012-06-15 17:27:27 +09:00
Jonas Bonér
f74c96b424 Merged with master 2012-06-14 16:21:03 +02:00
Jonas Bonér
cb0cfac6c7 Merged with master 2012-06-14 16:13:53 +02:00
Roland
2e459f5f1d make suspend/resume act recursively, as always intended, see #2212 2012-06-14 15:52:30 +02:00
Viktor Klang
9444df1245 #2197 - Switching to GenASM (java6 classfiles) 2012-06-14 10:07:59 +02:00
Björn Antonsson
b52da8d588 Fixed protoc generated code with script and updated instructions 2012-06-14 09:18:02 +02:00
Björn Antonsson
54717cd178 Merge branch 'master' into wip-2218-test-conductor-barrier-timeouts
Conflicts:
	akka-cluster/src/multi-jvm/scala/akka/cluster/MembershipChangeListenerJoinSpec.scala
2012-06-14 08:56:40 +02:00
Gert Vanthienen
34c99e2113 Merge remote-tracking branch 'akka/master' into osgi 2012-06-13 22:38:25 +02:00
Gert Vanthienen
2bf2cec282 Service registration is now optional, service references get cleaned up properly 2012-06-13 22:37:41 +02:00
Roland
b60210362e make system.actorOf() non-blocking (and working), see #2031
- introducing RepointableActorRef, which starts out with an
  UnstartedActorCell which can cheaply be created; the Supervise()
  message will trigger child.activate() in the supervisor, which means
  that the actual creation (now with normal ActorCell) happens exactly
  in the right place and with the right semantics. Messages which were
  enqueued to the dummy cell are transferred atomically into the
  ActorCell (using normal .tell()), so message sends keep working
  exactly as they used to
- this enables getting rid of the brittle synchronization around
  RoutedActorRef by replacing that one with a RepointableActorRef
  subclass which creates RoutedActorCells upon activate(), with the nice
  benefit that there is no hurry then to get it right because the new
  cell is constructed “on the side”

misc fixes:

- InvalidMessageException is now actually enforced when trying to send
  “null”
- Mailboxes may be created without having an ActorCell, which can come
  in handy later, because the cell is only needed when this mailbox is
  going to be scheduled on some executor
- remove occurrences of Props(), which is equivalent to Props[Nothing],
  which is equivalent to «bug»
- add test case which verifies that context.actorOf is still synchronous
- plus all the stuff I have forgotten.
2012-06-13 17:57:56 +02:00
patriknw
567c25df5c Merge pull request #537 from akka/wip-2077-gossip-merge-patriknw
Correct? implementation of merge and other actions, see #2077
2012-06-13 08:39:25 -07:00
Patrik Nordwall
c5164085b2 Merge branch 'master' into wip-2077-gossip-merge-patriknw
Conflicts:
	akka-cluster/src/main/scala/akka/cluster/Cluster.scala
2012-06-13 17:04:09 +02:00
Patrik Nordwall
391e633329 Improve docs based on feedback, see #2077 2012-06-13 16:54:21 +02:00
patriknw
86df3dab8f Merge pull request #536 from akka/wip-2222-singleton-convergence-patriknw
Fix false convergence when singleton cluster, see #2222
2012-06-13 07:20:19 -07:00
Patrik Nordwall
bd7bdff269 Improve debug log message of no convergence, see #2222 2012-06-13 16:15:16 +02:00
Viktor Klang
46a2d83cdf Removing long2double and using toDouble instead 2012-06-13 16:08:23 +02:00
Patrik Nordwall
82645ca3c9 Additional check of expectedAddresses in listener tests 2012-06-13 16:06:34 +02:00
Viktor Klang
f86a13af82 #1929 - enabling -Xlog-reflective-class 2012-06-13 15:52:16 +02:00
Viktor Klang
4ee2033761 Lots and lots of work to get things to compile without warnings 2012-06-13 15:44:24 +02:00
Patrik Nordwall
afbeb3e5f9 import MemberStatus._ 2012-06-13 15:33:38 +02:00
Patrik Nordwall
5b89d25c37 Add invariant assertions to Gossip, see #2077
* Add doc about how members are "moved"
2012-06-13 15:23:45 +02:00
Viktor Klang
6bb1bf6795 Switching to getDeclaredConstructor.newInstance as a fallback 2012-06-13 15:19:58 +02:00
Viktor Klang
6d114fb3e2 Review fixes 2012-06-13 15:14:51 +02:00
Viktor Klang
1eb6681b3c Removing horrid IDEA autogenerated section and adding Typesafe copyright to NonPublicClass.java 2012-06-13 15:11:19 +02:00
Viktor Klang
6b468d8856 Trying to get it to compile 2012-06-13 15:10:20 +02:00
Björn Antonsson
5714d8327f Make multi node tests use the within() aware barrier 2012-06-13 14:55:33 +02:00
Viktor Klang
d6e3642d9d Removing all uses of immutable.Stack in Akka 2012-06-13 14:08:47 +02:00
Viktor Klang
2d4067e21e Skipping immutable.Stack due to questionable implementation, going for immutable.List instead 2012-06-13 13:56:54 +02:00
Björn Antonsson
463e62926e Make test conductor barriers fail for all on timeouts and care about within() blocks. See #2218 2012-06-13 13:52:58 +02:00
Viktor Klang
8ce6ac3e3e #2217 - setting accessible = true before newInstance 2012-06-13 12:23:02 +02:00
Viktor Klang
d3e2f529f3 Removing a pointless import and the only Scala return statement in our codebase 2012-06-13 11:53:27 +02:00
Viktor Klang
6199556ced Caching emptyBehaviorStack and remove all other uses of Stack.empty 2012-06-13 11:39:04 +02:00
Patrik Nordwall
f3d9f9c4e8 Merge seen table by starting with empty seen after merge, see #2077 2012-06-13 11:19:06 +02:00
Patrik Nordwall
ff5c99a80d Minor cleanup, based on review comments, see #2077 2012-06-13 11:04:27 +02:00
Viktor Klang
b1fe6c709c Formatting 2012-06-13 10:55:47 +02:00
Viktor Klang
9e265f5c54 Proposal to make it possible to fully discard the receive and replace it with become, unbecome then reverts to receive if no behavior left 2012-06-13 10:48:54 +02:00
Patrik Nordwall
42c5281d5a Correct? implementation of merge and other actions, see #2077
* Merge unreachable using  highestPriorityOf
* Avoid merge result in node existing in both members and unreachable
* Fix joining only allowed when !alreadyMember && !isUnreachable (non Down)
* Fix filter bug of unreachable in downing and leaderActions
* Minor cleanups
2012-06-13 09:37:47 +02:00
Szabolcs Berecz
0c21bb9170 #2156 - sbt plugin: project dependencies should be included automatically 2012-06-12 21:49:55 +02:00
Gert Vanthienen
f33c45090d Update docs and use Option[String] in the activator instead of null 2012-06-12 16:57:25 +02:00
Gert Vanthienen
cfbf13ec2a Using Test.logback instead of Runtime.logback 2012-06-12 16:40:10 +02:00
Gert Vanthienen
cc79aae1a4 Adding PojoSR tests and a lot of code cleanup 2012-06-12 16:39:53 +02:00
Gert Vanthienen
94d68e8f2d Merge latest changes from akka/master 2012-06-12 16:32:03 +02:00
Patrik Nordwall
92cab53b1e Rename + operator of VectorClock and Versioned to :+
* + is kind of reserved for string concatination
2012-06-12 16:16:44 +02:00
Patrik Nordwall
de1ad30217 Fix false convergence when singleton cluster, see #2222
* All members must be in seen table for convergence
* Added extra debug logging due to convergence issues
* Enabled test of convergence for node joining singleton
  cluster
2012-06-12 16:16:44 +02:00