Commit graph

12466 commits

Author SHA1 Message Date
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
Gert Vanthienen
205b8ee7c1 Initial stab at a Blueprint namespace handler 2012-05-31 22:53:15 +02:00
Patrik Nordwall
85c263e077 Add missing long-running tag 2012-05-31 22:17:34 +02:00
Viktor Klang
3b06c0a7c2 Merge branch 'master' of github.com:akka/akka 2012-05-31 22:00:32 +02:00
Viktor Klang
fca5b9afbd #2166 - Adding link to Kryo serialization by Roman Levenstein 2012-05-31 21:58:24 +02:00
viktorklang
3a565c6c53 Merge pull request #499 from akka/wip-2117-singleton-cluster-patriknw
Singleton cluster convergence, see #2117
2012-05-31 12:35:16 -07:00
viktorklang
346f8be047 Correcting typo 2012-05-31 21:14:43 +03:00
viktorklang
27dbe85a70 Correcting typo 2012-05-31 21:14:19 +03:00
Patrik Nordwall
5578aef13a Changed loglevel to INFO for debugConfig(false) 2012-05-31 17:39:35 +02:00
Patrik Nordwall
13a93dfb50 Fix regression IllegalStateException: Can't find this Member, see #2117
* Gossiping to myself caused the failure detector to mark myself as unreachable
* Don't heartbeat for myself failure detector
2012-05-31 17:36:59 +02:00
Patrik Nordwall
9d1cbdc601 Singleton cluster convergence, see #2117 2012-05-31 14:48:12 +02:00
Patrik Nordwall
dfcdbc5221 Boy scouting 2012-05-31 14:48:12 +02:00
Björn Antonsson
5bc4391e04 Make multi-jvm run all tests even when there are failures see #2154 2012-05-31 14:02:36 +02:00
phaller
d5fb35eee1 Correcting example in ScalaDoc for Stash 2012-05-31 13:53:03 +02:00
patriknw
cba5c9b27a Merge pull request #497 from akka/wip-2123-cluster-random-patriknw
Cluster usage of SecureRandom is slow, see #2153
2012-05-31 01:54:24 -07:00
Oliver Schulz
904f1ba0bc Removed obsolete ByteIterator.isIdenticalTo 2012-05-31 00:56:33 +02:00
Oliver Schulz
3c9409a4b0 Added test for ByteString.compact to ByteStringSpec 2012-05-31 00:48:56 +02:00
Oliver Schulz
5b83dc366e Removed unnecessary implementations of ByteString.clone
* As all ByteString implementations are immutable, an explicit override
  of Object.clone doesn't seem necessary.
2012-05-31 00:44:21 +02:00
Oliver Schulz
b285b0821f Made things that don't need to be public private in ByteString / -Iterator 2012-05-31 00:39:15 +02:00
Viktor Klang
90344b657e Removing doc references to onResult and onTimeout 2012-05-30 23:32:22 +02:00
Patrik Nordwall
36385f981b Add missing barrier 2012-05-30 19:32:10 +02:00
Oliver Schulz
a0ea833d54 Improved ByteArrayIterator.empty 2012-05-30 18:06:01 +02:00
Oliver Schulz
4658e4f165 Removed some remnant exposed internals from ByteArrayIterator 2012-05-30 18:05:54 +02:00
Viktor Klang
7257dc5d86 Minor code formatting 2012-05-30 17:37:44 +02:00
Patrik Nordwall
e469561543 Minor corrections and cleanup 2012-05-30 17:17:09 +02:00
Patrik Nordwall
cd8e0ab3b1 Change to ThreadLocalRandom, see #2123 2012-05-30 17:16:46 +02:00
Viktor Klang
c64db4b00d Code formatting 2012-05-30 15:37:29 +02:00
Viktor Klang
d42109ff5f Adding warning logging for erronous settings 2012-05-30 14:43:18 +02:00
Viktor Klang
6c1ca7fcdb Unborkening the top-level surveillance 2012-05-30 14:26:09 +02:00
Peter Badenhorst
0cfae7b66c Merge branch 'ticket_1978' of github.com:dev10/akka into ticket_1978
Conflicts:
	akka-remote/src/main/resources/reference.conf
	akka-remote/src/main/scala/akka/remote/netty/Client.scala
	akka-remote/src/main/scala/akka/remote/netty/Server.scala
	akka-remote/src/main/scala/akka/remote/netty/Settings.scala
2012-05-30 13:51:26 +02:00
Viktor Klang
f4a3bdff33 Adding PossiblyHarmful to RemoteTransport untrusted mode filtering 2012-05-30 13:29:48 +02:00
Viktor Klang
8bdb870246 Implementing death watch for PromiseActorRef 2012-05-30 13:24:38 +02:00
Peter Badenhorst
56cd9692ed Reverted changes to client and server files and moved the code to NettySSLSupport.scala
Updated configuration file to reflect new netty.ssl hierarchy.
2012-05-30 12:04:16 +02:00
Peter Badenhorst
dbc3d91395 Added changes to Netty pipelines to support SSL/TLS. Fixes #1978
1) Netty server and client pipelines updated to conditionally load keystore/truststore if SSL is enabled in the config
2) Supports any available encryption protocol via 'ssl-protocol'
3) Supported encryption algorithms are specified via 'ssl-encryption-protocol' config key

Conflicts:

	akka-remote/src/main/scala/akka/remote/netty/Client.scala
	akka-remote/src/main/scala/akka/remote/netty/Server.scala
	akka-remote/src/main/scala/akka/remote/netty/Settings.scala
2012-05-30 12:04:15 +02:00
Oliver Schulz
b5fa527d2c Simplified implementation of ByteIterator.indexOf 2012-05-30 00:02:50 +02:00
Oliver Schulz
d59fbbf8e4 Made bytestrings private in ByteString.ByteStrings 2012-05-30 00:02:50 +02:00
Oliver Schulz
60c7a57ddf Code formatting changes as requested by Victor 2012-05-30 00:02:50 +02:00
Oliver Schulz
34e469c609 Fixed typos in ByteString comments 2012-05-30 00:02:49 +02:00
Oliver Schulz
9865a4e3e1 Added specialized implementation of foreach to MultiByteArrayIterator 2012-05-30 00:02:49 +02:00