Patrik Nordwall
f30a1a0b1f
Always removeNode when shutdown, see 2137
2012-06-04 14:29:32 +02:00
Viktor Klang
a5127b12dd
Merge branch 'master' into wip-2134-deathwatch2.0-√
2012-06-04 13:58:09 +02:00
Patrik Nordwall
415366e881
Merge branch 'master' into wip-2137-remove-shutdown-patriknw
2012-06-04 13:52:27 +02:00
Patrik Nordwall
5810f73530
Minor improvement from review feedback, see 2137
2012-06-04 13:51:30 +02:00
Viktor Klang
c990fee724
Switching to the appropriate check for confirmed existence
2012-06-04 13:46:29 +02:00
patriknw
f9a8cde812
Merge pull request #508 from akka/wip-2173-LogRoleReplace-patriknw
...
Utility to replace jvm and host:port with role in logs, see 2173
2012-06-04 04:43:39 -07:00
Patrik Nordwall
e592cebe20
Add script to run LogRoleReplace, see #2173
2012-06-04 13:35:08 +02:00
Viktor Klang
b45305a61e
More formatting
2012-06-04 13:34:30 +02:00
Roland
fd1d0ce121
make cleanUp of systemMessages atomic
...
- extend systemDrain to take the new contents which shall be switched in
- make NoMessage placeholder which will signal final closing of the
mailbox
- put that in when cleaning up, and check it when enqueuing
2012-06-04 13:20:53 +02:00
Patrik Nordwall
e4104cfd06
Replace 'after' barrier with explicit barrier inside test method.
...
* It's no problem using after, but scalatest will output the test method
as completed (green) before running after, so it looks confusing in the logs
* Using unique barrier names adds extra traceability in case of failures.
2012-06-04 11:58:09 +02:00
Viktor Klang
1821927023
Merge branch 'wip-2134-deathwatch2.0-√' of github.com:akka/akka into wip-2134-deathwatch2.0-√
2012-06-04 11:48:40 +02:00
Patrik Nordwall
52f122107c
Fix shutdown/remove race as described by @rkuhn, see #2137
...
* Skip nodes removal
* Ignore removed client when enter barrier
* Change order of testConductor.shutdown and testConductor.removeNode
2012-06-04 11:48:03 +02:00
Viktor Klang
2e788c9704
Adding some sanity and some CAS-magic
2012-06-04 11:46:59 +02:00
Roland
df479a0bf0
add back TestProbe.reply, see #2172
2012-06-04 11:29:56 +02:00
Jonas Bonér
20be83d0eb
Merge branch 'master' into wip-2162-membership-change-listener-spec-jboner
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-04 10:42:57 +02:00
Jonas Bonér
e7cf92e72a
Merge pull request #506 from akka/wip-2161-test-leave-the-cluster-gracefully-jboner
...
Added implementation of the LEAVE command for a cluster node plus misc tests
2012-06-04 01:39:22 -07:00
Jonas Bonér
8297e0132b
Added comment to explain the increase in leader action frequency.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-04 10:38:10 +02:00
Viktor Klang
a515377592
Formatting
2012-06-04 10:35:27 +02:00
Jonas Bonér
beac5c5cff
Fixed typo in config
2012-06-04 10:12:31 +02:00
Roland
de59444795
offer TestKitBase trait, see #2174
2012-06-04 10:03:41 +02:00
Patrik Nordwall
3c7ade3cdb
Utility to replace jvm and host:port with role in logs, see 2173
2012-06-04 08:50:28 +02:00
Viktor Klang
5848c88cba
Making sure we use vals for the fields in Terminated
2012-06-02 23:07:51 +02:00
Jonas Bonér
ead5bf8695
Added test for testing that MemberChangeListener is triggered by node LEAVING event.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-02 17:37:41 +02:00
Jonas Bonér
5dc039b0f1
Added test for testing that MemberChangeListener is triggered by node JOINING and UP events.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-02 17:37:29 +02:00
Jonas Bonér
bcc6e4c11f
Added test for testing that MemberChangeListener is triggered by node EXITING event.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-02 17:37:13 +02:00
Jonas Bonér
d1fb1b9252
Changed name of test files to end with *Spec.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-02 17:36:10 +02:00
viktorklang
ebc919ba61
Merge pull request #507 from akka/wip-2168-expose-more-netty-config-√
...
#2168 - Exposing more Netty options in remote config
2012-06-02 08:02:39 -07:00
Jonas Bonér
393c6e01b2
Merge pull request #504 from akka/wip-2157-leader-state-patriknw
...
Test leader member states, see 2157
2012-06-02 07:23:35 -07:00
Viktor Klang
17ee47079a
Incorporating Roland's feedback
2012-06-02 14:49:28 +02:00
Viktor Klang
e461e1490d
Merge branch 'wip-2134-deathwatch2.0-√' of github.com:akka/akka into wip-2134-deathwatch2.0-√
2012-06-02 14:20:12 +02:00
viktorklang
6da3a562d8
Merge pull request #503 from akka/wip-1953-master-start-using-migration-manager-ban
...
Wip 1953 master start using migration manager ban
2012-06-01 14:58:25 -07:00
Viktor Klang
0330a5fd29
Adding the low watermark option
2012-06-01 21:47:14 +02:00
Viktor Klang
5ec38e82e5
Switching over to foreach, anticipating the use of -optimize for 2.10
2012-06-01 21:42:18 +02:00
Viktor Klang
12b9af25cf
#2168 - Exposing more Netty options in remtoe config
2012-06-01 21:29:47 +02:00
Jonas Bonér
e0fbf2f324
Renamed the NodeStartupSpec to NodeJoinAndUpSpec and added tests for both JOINING and UP.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-01 18:06:43 +02:00
Jonas Bonér
505e0717b9
Made the timeout for test dilated
2012-06-01 17:25:27 +02:00
viktorklang
2940740c48
Merge pull request #493 from scullxbones/wip-1734-circuit-breaker-scullxbones
...
Recreate clean branch for #1734 - Circuit Breaker
2012-06-01 08:22:14 -07:00
Jonas Bonér
a3d48339ca
Added test for testing cluster node transitioning from UP -> LEAVING -> EXITING -> REMOVED.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-01 16:51:18 +02:00
Jonas Bonér
3ac39cce95
Added test for testing cluster node transitioning from UP -> LEAVING -> EXITING.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-01 16:50:56 +02:00
Jonas Bonér
de8bb7d96f
Added test for testing cluster node transitioning from UP -> LEAVING.
...
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-01 16:50:34 +02:00
Jonas Bonér
0449f85a86
Added implementation of the LEAVE command for a cluster node.
...
* Added implementation of the LEAVE command for a cluster node
* Changed the meaning of Member.isUnavailable to only DOWN and REMOVED
* Removed EXIT and UP as user commands
* Fixed Cluster.self to fall back to checking for itself in the gossip.overview.unreachable set.
* Added Leader action transitioning from LEAVING -> EXITING
* Improved comments
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-06-01 16:49:50 +02:00
Patrik Nordwall
33f14f9bf6
Test gossip convergence, see #2164
2012-06-01 15:15:53 +02:00
Viktor Klang
aef05497f5
Adding some error ouput for violated invariants in ASkSupport
2012-06-01 14:49:12 +02:00
Brian Scully
6a415f0e9b
* Add Circuit Breaker to akka.pattern for general use. Circuit breaker implementation as described by Michael T. Nygard in Release It!. Fixes #1734
...
* Uses finite state machine for three states: Closed, Open, Half-Open
* Closed state allows calls through, and on sequential failures exceeding the max# set - transitions to Open state. Intervening successes cause the failure count to reset to 0
* Open state throws a CircuitOpenException on every call until the reset timeout is reached which causes a transition to Half-Open state
* Half-Open state will allow the next single call through, if it succeeds - transition to Closed state, if it fails - transition back to Open state, starting the reset timer again
* Allow configuration for the call and reset timeouts, as well as the maximum number of sequential failures before opening
* Supports async or synchronous call protection
* Callbacks are supported for state entry into Closed, Open, Half-Open. These are run in the supplied execution context
* Both thrown exceptions and calls exceeding max call time are considered failures
* Uses akka scheduler for timer events
* Integrated into File-Based durable mailbox
* Sample documented for other durable mailboxes
2012-06-01 08:24:47 -04:00
Patrik Nordwall
4dbf4a70b3
Test leader member states, see 2157
...
* The only allowed member states for a leader are up or leaving
* Added above check in assertLeader so that we always verify that
* More usage of assertLeader in the tests
2012-06-01 11:39:51 +02:00
Patrik Nordwall
ab1969e93a
Debug log since we had one hard to reproduce failure on this
2012-06-01 10:45:34 +02:00
Patrik Nordwall
af924384b6
Shutdown correct node
2012-06-01 10:44:58 +02:00
Björn Antonsson
17b0f43aea
Invoke mima as part of the release --dry-run see #1953
2012-06-01 10:01:37 +02:00
Björn Antonsson
8f31850ae2
Add Migration Manager for binary compatibility checks. see #1953
2012-06-01 10:01:06 +02:00
Patrik Nordwall
85c263e077
Add missing long-running tag
2012-05-31 22:17:34 +02:00