Commit graph

127 commits

Author SHA1 Message Date
Patrik Nordwall
e3a7138991 Merge pull request #2020 from akka/wip-3882-sharding-watch-after-recovery-patriknw
=con #3882 Defer watch in ClusterSharding until after recovery
2014-02-19 14:57:44 +01:00
Patrik Nordwall
5d2761b81c =con #3882 Defer watch in ClusterSharding until after recovery
* To avoid unnecessary and costly watch/unwatch to non-existing systems.
* This avoids the problematic scario revealed in ticket 3879
2014-02-19 08:33:35 +01:00
Patrik Nordwall
21e8f89f53 =con #3880 Keep track of all shards per region in ClusterSharding
* The problem was that ShardRegion actor only kept track of one shard
  id per region actor.  Therefore the Terminated message only removes
  one of the shards from its registry when there are multiple shards
  per region.
* Added failing test and solved the problem by keeping track of all
  shards per region
* Also, rebalance must not be done before any regions have been
  registered
2014-02-19 08:11:11 +01:00
Patrik Nordwall
c2a932768b Merge pull request #1997 from akka/wip-3228-doc-TimerBasedThrottler-patriknw
=con #3228 Adjust structure of TimerBasedThrottler ScalaDoc
2014-02-13 12:27:30 +01:00
Patrik Nordwall
4b33cf98df =con #3865 Fix race in pub-sub when nodes are removed
* The race can happen if the MemberRemoved event is received followed by a Delta update from
  a node that has not yet got the MemberRemoved. That will make the bucket for the removed
  node to be added back in the registry.
2014-02-13 12:25:56 +01:00
Patrik Nordwall
89a5772e87 =con #3228 Adjust structure of TimerBasedThrottler ScalaDoc
* The documentation was good, but some parts were "hidden" by separating
  it two places. I understand the original reason for the separation but
  it might be easier for the user (as reported in the ticket) to have
  everything in one place.
2014-02-07 16:22:04 +01:00
Adam Voss
cce29dfa51 Changes all occurances of Typesafe copyright to extend to 2014. 2014-02-04 21:20:09 -06:00
Patrik Nordwall
ef261e8128 Merge pull request #1976 from akka/wip-3837-akka-master-on-scala-master-ban
=all #3837 Make akkaScalaNightly compile on scala 2.11.0-M8
2014-02-02 02:46:39 -08:00
Patrik Nordwall
54093c9646 Merge pull request #1964 from akka/wip-2966-warnings-patriknw
=* #2966 Reduce warnings from compile, test, scaladoc
2014-02-02 02:30:31 -08:00
Björn Antonsson
179faba453 =all #3837 Make akkaScalaNightly compile on scala 2.11.0-M8 2014-01-31 14:13:02 +01:00
Patrik Nordwall
615c6b572c =* #2966 Reduce warnings from compile, test, scaladoc 2014-01-24 11:47:57 +01:00
Eric Pederson
0a8f0e8dd8 =con #3834 Doc fixes for ReliableProxy 2014-01-23 13:19:40 -05:00
Patrik Nordwall
da2e4cc092 =con Unbork genjavadoc for ReliableProxy
* genjavadoc fails with NPE for the ReliableProxy.DebugLogging trait,
  workaround by moving it to top level
2014-01-20 17:05:24 +01:00
Patrik Nordwall
9a8e4b5a42 Merge pull request #1943 from akka/wip-3159-squash-reliable-proxy-reconnect-patriknw
!con #3820 Add reconnection to ReliableProxy
2014-01-20 05:12:39 -08:00
Patrik Nordwall
8ec581c808 Merge pull request #1935 from drexin/wip-3544-improve-testkit
+tes Added system as default param to TestKit.shutdown
2014-01-20 05:12:17 -08:00
Eric Pederson
fcb7a6c292 !con #3820 Add reconnection to ReliableProxy 2014-01-20 11:41:48 +01:00
Martin Krasser
e0f5cf5f2c !per #3828 Rename receiveReplay to receiveRecover
- because it handles messages related to recovery (snapshots and replayed messages)
2014-01-19 17:46:32 +01:00
Dario Rexin
e045c537a3 !tes #3544 Added 'system' as default parameter to the shutdown method on
TestKit
2014-01-17 23:08:32 +01:00
Patrik Nordwall
a11fb1dafc =act #3572 Add parens to sender
* because it is not referentially transparent; normally we reserved parens for
  side-effecting code but given how people thoughtlessly close over it we revised
  that that decision for sender
* caller can still omit parens
2014-01-17 18:21:14 +01:00
Endre Sándor Varga
cf58402dd9 !rem #3765: Change the defaults for remoting
- removed retry-window and related settings
 - removed gate-invalid-addresses-for
 - gate is now mandatory
 - remoting has a dedicated dispatcher by default
 - updated tests to work with changed timings
 - added doc section for association lifecycle
2014-01-17 11:29:22 +01:00
Patrik Nordwall
2e5193347e !clu #3617 API improvements related to CurrentClusterState
* Getter for CurrentClusterState in Cluster extension, updated via
  ClusterReadView
* Remove lazy init of readView. Otherwise the cluster.state will be
  empty on first access, wich is probably surprising
* Subscribe to several cluster event types at once, to ensure *one*
  CurrentClusterEvent followed by change events
* Deprecate publishCurrentClusterState, was a bad idea, use sendCurrentClusterState
  instead
* Possibility to subscribe with InitialStateAsEvents to receive events corresponding
  to CurrentClusterState
* CurrentClusterState not a ClusterDomainEvent, ticket #3614
2014-01-16 16:17:44 +01:00
Patrik Nordwall
7ded992a5c Merge pull request #1911 from akka/wip-3801-ReliableProxySpec-dilated-patriknw
=con #3801 No dilation of expectNoMsg in ReliableProxySpec
2014-01-15 10:30:41 -08:00
Patrik Nordwall
7648a50d53 +act #3769 Add toStringWithoutAddress to ActorPath 2014-01-15 15:05:52 +01:00
Patrik Nordwall
2a791f4116 =con #3801 No dilation of expectNoMsg in ReliableProxySpec
* The problem was that too long expectNoMsg caused failure detection
  because of blackhole
2014-01-15 14:48:50 +01:00
Björn Antonsson
003609c9c5 =pro #3759 Changed to using non-deprecated ScalaTest Matchers 2013-12-18 11:32:51 +01:00
Patrik Nordwall
0a56fbf7d0 =doc Fix a few typos in docs 2013-12-15 17:42:03 +01:00
Patrik Nordwall
b3b66db643 +con #3758 Provide sharding of actors in a cluster
* Delete files only from controller
* Change default retry settings of singleton to speedup startup
* Persistent snapshots
2013-12-13 16:19:35 +01:00
Björn Antonsson
00a268b6b3 =pro #3753 Override dependency versions from command line 2013-12-03 16:47:10 +01:00
Viktor Klang
4769a44875 +doc #3656 correcting the TypedActor documentation 2013-11-05 15:31:24 +01:00
Björn Antonsson
b7ded6dc29 Merge pull request #1811 from benmccann/depreceated-spelling
=doc Fix spelling. Change depreceated to derecated
2013-10-25 08:46:53 -07:00
Ben McCann
38fb1b3640 =doc Fix spelling. Change depreceated to deprecated 2013-10-25 08:36:36 -07:00
Patrik Nordwall
51b9e78240 !con #3679 Make protobuf serialization for DistributedPubSubMediator 2013-10-21 18:39:23 +02:00
Patrik Nordwall
11972b4497 +con #3677 Limit delta in DistributedPubSubMediator 2013-10-21 12:02:48 +02:00
Patrik Nordwall
73d3430024 +con #3669 Possibility to define routing logic in DistributedPubSub
* Serialization check in contrib
2013-10-17 12:17:45 +02:00
Patrik Nordwall
d5b25cbbc6 !act #3583 Timer based auto-down
* Replace (deprecate) akka.cluster.auto-down config setting with
  akka.cluster.auto-down-unreachable-after
* AutoDown actor that keeps track of unreachable members
  and performs down from the leader node when they have been
  unreachable for the specified duration
* Migration guide
2013-09-27 14:32:03 +02:00
Patrik Nordwall
c55189f615 Merge pull request #1719 from akka/wip-3597-cluster-singleton-hand-over-patriknw
!con #3597 Remove hand over data message in cluster singleton
2013-09-25 02:54:06 -07:00
Patrik Nordwall
debc0ea5f7 =con #3616 Fix failing ClusterClientSpec
* client connected to fourth node, but the replication check didn't
  include that node
2013-09-17 14:52:33 +02:00
Patrik Nordwall
bc55cac899 +con #3595 Use remote death watch in cluster client 2013-09-13 13:19:48 +02:00
Patrik Nordwall
bb25f7dd94 Merge pull request #1714 from akka/wip-3551-buffer-cluster-client-patriknw
+con #3551 Buffer messages in cluster client
2013-09-13 03:49:04 -07:00
Akara Sucharitakul
c6c632176b +con #3578 Aggregator contribution
(cherry picked from commit ea3d9fd8a188bc5534f31ca0ba57751d01be3b66)
2013-09-12 13:31:20 +02:00
Patrik Nordwall
23f933afe3 !con #3597 Remove hand over data message in cluster singleton 2013-09-10 13:35:51 +02:00
Patrik Nordwall
09e3953c9f +con #3551 Buffer messages in cluster client
* Stash when establishing connection to receptionist
2013-09-10 07:52:46 +02:00
Endre Sándor Varga
b566e9393d =act, rem, clu #3521: make serialize-messages work with core modules 2013-08-27 11:05:54 +02:00
Taylor Leese
a27cf16ed8 Merge branch 'master' into more_cluster_client_docs 2013-08-21 04:37:35 -07:00
Taylor Leese
47f33c9294 Add a few more details to the cluster client docs. 2013-08-20 03:09:59 -07:00
Björn Antonsson
4a2b6effb3 =pro #3552 Upgrade ScalaTest to 1.9.2-SNAP2 for dbuild
* This can't go into 2.2.x since ScalaTest 1.9.2-SNAP2 has source incompatible changes and the dependecy in akka-multi-node-node-testkit would force people to upgrade.
2013-08-19 15:08:29 +02:00
Patrik Nordwall
6460d764a1 Make Throttler usable from Java, see #3223 2013-07-05 10:52:34 +02:00
Roland
f317aaf711 rewrite mailbox selection logic, see #3342
- add “mailbox-requirement” key to dispatcher section
- split out mailbox section, add akka.actor.default-mailbox
- rewrite findMarker method and use it for Props.create() and getting
  the required mailbox of an actor
- add ProducesMessageQueue trait for MailboxType so that requirements
  can be checked before trying to create the actor for real
- verify actor as well as dispatcher requirements for message queue
  before creation, even in remote-deployed case
- change MessageDispatcher constructor to take a Configurator, add that
  to migration guide
2013-06-02 12:32:04 +02:00
Patrik Nordwall
95366cb585 Wrap long lines, for pdf 2013-05-30 14:45:15 +02:00
Patrik Nordwall
146e2c0719 Fix exiting ordering problem in ClusterSingletonManager, see #3408
* The problem was:
  - first is leaving, second is new oldest
  - two actors subscribe to cluster events, OldestChangedBuffer and ClusterSingletonManager
  - ClusterSingletonManager receives MemberExited(first), and then also MemberRemoved(second)
    before OldestChangedBuffer receives MemberExited(first) and delivers
    OldestChanged(first->second)
  - MemberRemoved(second) is the result of the cluster extension shutdown
  - because ClusterSingletonManager gets the MemberRemoved(second) before the OldestChanged
    it will not send the hand over data to second
  - second becomes new singleton after retry period, as designed, but without hand over data
 * The solution is to check the selfExited flag in Oldest state, similar to what is done
   in WasOldest
 * I considered the alternative to tunnel all member events through same subscriber,
   but that would involve more changes to the code
2013-05-29 09:11:43 +02:00