Patrik Nordwall
7b6ae2f5c9
Use nanoTime in FixedRateTask, see #2214
...
* Rewrote test to use latch and assert rate instead
2012-06-12 13:37:21 +02:00
Patrik Nordwall
b27bae6554
Use dedicated cluster scheduler only when default scheduler resolution isn't good enough, see #2214
...
* Config properties for scheduler
* Commented shutdown considerations
2012-06-12 13:34:59 +02:00
Viktor Klang
649b9d5181
Switching to Mr Pink's Java6 detector
2012-06-11 22:53:45 +02:00
Patrik Nordwall
a7d2be10eb
Merge branch 'master' into wip-2214-heartbeats-patriknw
...
Conflicts:
akka-cluster/src/main/scala/akka/cluster/AccrualFailureDetector.scala
akka-cluster/src/main/scala/akka/cluster/Cluster.scala
2012-06-11 22:27:08 +02:00
Patrik Nordwall
34c9e49ee0
Schedule cluster tasks with more accurate, see #2114
...
* Use scheduler with more accurate settings
* New FixedRateTask that compensates for inaccuracy
2012-06-11 22:20:44 +02:00
Patrik Nordwall
d957c68639
Incorporate feedback from review, see #2214
2012-06-11 21:12:57 +02:00
Peter Badenhorst
399a08b8b3
Used RemoteCommunicationSpec as a template to implement a functional spec to test SSL communication.
...
1) Converted provider and related RNG's from Java to Scala
2) Added trust/key stores for testing purposes
3) As stated in the test comments, Internet access is required for the 2 'Secure' RNG variants to function within the time limit.
4) Fixed unnecessary imports
2012-06-11 18:33:05 +02:00
Viktor Klang
36b040cfab
Unbreaking master
2012-06-11 18:11:02 +02:00
Jonas Bonér
46cf426382
Merge pull request #530 from akka/wip-failure-detector-puppet-jboner
...
Abstracted the FailureDetector into a interface trait and added controllable failure detector mock.
2012-06-11 08:37:27 -07:00
Jonas Bonér
c0e2362daa
Merge branch 'master' into wip-failure-detector-puppet-jboner
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-11 16:53:55 +02:00
Jonas Bonér
2dcceb58ce
Split up all tests that are related to failure detection into two versions: Accrual FD and FD Puppet. Also moved all tests that are not failure detection tests to use FD Puppet.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-11 16:48:19 +02:00
Patrik Nordwall
e2551494c4
Use Use separate heartbeats for FailureDetector, see #2214
...
* Send Heartbeat message to all members at regular interval
* Removed the need to gossip to myself
2012-06-11 15:00:44 +02:00
Jonas Bonér
b65cf5c2ec
Created FailureDetectorStrategy with two implementations: FailureDetectorPuppetStrategy and AccrualFailureDetectorStrategy.
...
- Created FailureDetectorStrategy base trait.
- Created FailureDetectorPuppetStrategy.
- Created AccrualFailureDetectorStrategy.
- Created two versions of LeaderDowningNodeThatIsUnreachableMultiJvmSpec
- LeaderDowningNodeThatIsUnreachableWithFailureDetectorPuppet
- LeaderDowningNodeThatIsUnreachableWithAccrualFailureDetector
- Added AccrualFailureDetectorStrategy to all the remaining tests - will be split up into two versions shortly.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-11 14:32:17 +02:00
viktorklang
f4eaeab43e
Merge pull request #527 from akka/wip-2203-always-deadletters-√
...
#2203 - publish failed message deliveries to DeadLetters when bounded or...
2012-06-11 05:08:48 -07:00
viktorklang
efc016b9c4
Merge pull request #528 from akka/wip-2208-netty-update-√
...
#2208 - Upgrading to Netty 3.5.0 - remove StaticChannelPipeline since it...
2012-06-11 05:08:22 -07:00
viktorklang
b9269ca57e
Merge pull request #531 from akka/wip-2187-yellow-warnings-√
...
#2187 - Making Warning sections in docs yellow so they aren't overlooked
2012-06-11 05:07:59 -07:00
viktorklang
7a447ffe9d
Merge pull request #532 from akka/wip-2119-enforce-java6-for-releases-√
...
#2119 - enforce Java6 for releases
2012-06-11 05:07:22 -07:00
Jonas Bonér
523f433e4b
Fixed potential problem in test
2012-06-11 11:36:29 +02:00
Viktor Klang
edc0c0d888
#2119 - enforce Java6 for releases
2012-06-11 11:26:28 +02:00
Viktor Klang
44fefb9b55
#2187 - Making Warning sections in docs yellow so they aren't overlooked
2012-06-11 11:05:19 +02:00
Jonas Bonér
ec7177be74
Misc fixes after FailureDetectorPuppet and abstraction review
...
- Moved FailureDetectorPuppet to its own file in src/test.
- Removed 'phi' method from FailureDetector public API.
- Throwing exception instead of falling back to default if we can't load the custom FD.
- Removed add-connection method in FailureDetectorPuppet.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-11 10:06:53 +02:00
Jonas Bonér
0030fa1b52
Made LeaderDowningNodeThatIsUnreachableSpec make use of the new FailureDetectorPuppet as a sample of how to use it.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-10 16:53:17 +02:00
Jonas Bonér
a4499b06bb
Abstracted the FailureDetector into a interface trait and added controllable failure detector mock.
...
- Abstracted a FailureDetector trait.
- Added a FailureDetectorPuppet mock that can be user controllable
- Added option to define a custom failure detector
- Misc minor fixes
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-10 16:52:33 +02:00
Jonas Bonér
e6ee3e2a95
Ignoring ConvergenceSpec until fixed.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-10 16:50:04 +02:00
Viktor Klang
fd455d14bf
#2208 - Upgrading to Netty 3.5.0 - remove StaticChannelPipeline since it's deprecated.
2012-06-08 21:57:39 +02:00
Patrik Nordwall
2b69f67777
Ignore due to failures, see #2180
2012-06-08 16:54:55 +02:00
Patrik Nordwall
c9e259d569
Turn on debug logging due to failures
2012-06-08 16:51:27 +02:00
Viktor Klang
c83ca22aa1
Merge branch 'master' of github.com:akka/akka
2012-06-08 15:39:40 +02:00
Viktor Klang
8479db7e75
#2186 - Adding test to verify that parent is restarted if decider throws an exception
2012-06-08 15:30:17 +02:00
Patrik Nordwall
a1dd4bc235
Remove jenkins color codes in LogRoleReplace script
2012-06-08 15:28:03 +02:00
Patrik Nordwall
fb62311f49
Rename NodeShutdownSpec to SingletonClusterSpec, see #2182
2012-06-08 15:03:11 +02:00
Viktor Klang
b464b1a02d
Merge branch 'master' of github.com:akka/akka
2012-06-08 14:26:26 +02:00
Viktor Klang
c1d68ecfbf
Minor formatting
2012-06-08 14:26:10 +02:00
patriknw
eae184d117
Merge pull request #526 from akka/wip-2182-unreachable-patriknw
...
Use all heartbeats in failure detector, see #2182
2012-06-08 05:18:21 -07:00
Patrik Nordwall
f6fb742fcf
Incorparated improvements/cleanup based on feedback, see #2182
2012-06-08 14:13:08 +02:00
Viktor Klang
18260a3b7b
#2203 - publish failed message deliveries to DeadLetters when bounded or durable mailbox enqueues fail
2012-06-08 13:56:53 +02:00
Patrik Nordwall
dcae863f7f
Use all heartbeats in failure detector, see #2182
...
* Failure detector didn't use hearbeat 1 and 2
* Included heartbeat 2 in ordinary stats
* For heartbeat 1 use guess stats,
important so that connections with only one heartbeat
becomes unavailble, the guess corresponds to 1 second interval
which results in phi > 8 after 18 seconds
* Improved AccrualFailureDetectorSpec
2012-06-08 13:44:45 +02:00
Jonas Bonér
45b2484f62
Implemented/Fixed Cluster.remove() and state transition from LEAVING -> REMOVED.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-08 11:51:34 +02:00
Jonas Bonér
57fadc1f7d
Added MembershipChangeListenerRemovedMultiJvmSpec
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-08 11:50:36 +02:00
Patrik Nordwall
c7af802dc8
Turn on debug logging due to failures
2012-06-08 11:30:44 +02:00
Patrik Nordwall
531e675ef9
Ignore the leaving/exit failing tests
2012-06-08 11:20:19 +02:00
patriknw
9700d9ca0b
Merge pull request #523 from akka/wip-2195-sunny-patriknw
...
Test normal healthy cluster, see #2195
2012-06-08 02:08:47 -07:00
Patrik Nordwall
233b9a6291
Change loglevel to info, gossiping verification done, see #2195
2012-06-08 09:41:42 +02:00
Patrik Nordwall
56735477b8
initialParticipants default as roles.size in cluster tests
2012-06-08 09:23:36 +02:00
Patrik Nordwall
6a380550f9
Notify MembershipChangeListeners when 'members' change
2012-06-08 08:59:05 +02:00
viktorklang
9b0a1f2dc6
Merge pull request #525 from akka/wip-remove-systemService-from-LAR-∂π
...
remove LocalActorRef.systemService (residue, very old)
2012-06-07 15:23:53 -07:00
Roland
d4070d36ab
remove LocalActorRef.systemService (residue, very old)
2012-06-07 23:56:04 +02:00
Roland
1b68ea7c9d
document processAllSystemMessages semantics
2012-06-07 23:50:23 +02:00
Patrik Nordwall
f6365e83e7
Change to logback 1.0.4, see #2198
2012-06-07 20:40:14 +02:00
Viktor Klang
2cbc04a5ab
#2196 - Updating Logback dep to 1.0.0
2012-06-07 18:38:24 +02:00