Commit graph

6 commits

Author SHA1 Message Date
Patrik Nordwall
2cba3606ae Harden ClusterSingletonManagerSpec, see #3116
* One of the test steps was not deterministic and verification too strict
* Created a separate test for the chaotic scenarios
2013-03-05 10:47:11 +01:00
Patrik Nordwall
2a45d99ab3 Change more copyright to 2009-2013, see #2879
* Also added some missing headers
2013-02-20 21:26:52 +01:00
Patrik Nordwall
d32a2edc51 Buffer LeaderChanged events and publish all on convergence, see #3017
* Otherwise some changes might never be published, since it doesn't have
  to be convergence on all nodes inbetween all transitions.
* Detected by a failure ClusterSingletonManagerSpec.
* Added a test to simulate the failure scenario.
2013-02-08 12:29:11 +01:00
Patrik Nordwall
4ee299c729 Hardening of another corner case in cluster singleton, see #3017
* It was an unlikely situatation that was not covered,
  the new leader didn't know previous, because it transitioned
  from Start -> BecomeLeader, old leader was removed and got
  LeaderChanged(None), so none of them could request the other
  for hand-over or take-over.
* Taken care of with the retry timeouts, also when leader
  receives LeaderChanged(None)
* The old leader should have received a propert LeaderChanged
  earlier, which is a flaw in the way we publish leader events.
  That part will be fixed in a separate commit.
2013-02-08 08:04:23 +01:00
Patrik Nordwall
c48d9c058e Clarifications of cluster singleton docs, see #2895 2013-01-29 11:03:25 +01:00
Patrik Nordwall
0c38a76c37 Cluster singleton actor pattern, see #2895
* ClusterSingletonManager
* ClusterSingletonManagerSpec multi-node test
* Use in cluster router with single master sample
* Extensive logging to be able to understand what is
  going on
* Java api
* Add cluster dependency to contrib
* Add contrib dependency to sample
* Scaladoc
* rst docs in contrib area, ref from cluster docs
2013-01-25 14:00:28 +01:00