+clu #3636 Revert join to uninitialized

* Revert the change introduced in
  https://github.com/akka/akka/pull/1738/files
* The cleanup/improvements aside of the actual
  feature is not reverted by this patch
* Clarify the documentation
This commit is contained in:
Patrik Nordwall 2013-10-14 17:46:55 +02:00
parent 4a2171e16f
commit c449f5afff
4 changed files with 32 additions and 22 deletions

View file

@ -32,19 +32,21 @@ abstract class NodeUpSpec
import ClusterEvent._
"A cluster node that is joining another cluster" must {
"be moved to UP by the leader after a convergence" taggedAs LongRunningTest in {
"not be able to join a node that is not a cluster member" taggedAs LongRunningTest in {
// it should be possible to join an uninitialized node
// test race on purpose
runOn(first) {
cluster.join(second)
}
runOn(second) {
cluster.join(first)
}
enterBarrier("first-join-attempt")
awaitMembersUp(2)
Thread.sleep(2000)
clusterView.members must be(Set.empty)
enterBarrier("after-0")
}
"be moved to UP by the leader after a convergence" taggedAs LongRunningTest in {
awaitClusterUp(first, second)
enterBarrier("after-1")
}