Skip to content

Conversation

patriknw
Copy link
Contributor

@patriknw patriknw commented Sep 4, 2017

  • also confirm TakeOverFromMe when singleton already in oldest state

Refs #23582

* also confirm TakeOverFromMe when singleton already in oldest state
@patriknw patriknw requested a review from johanandren September 4, 2017 14:03
@akka-ci akka-ci added validating PR is currently being validated by Jenkins tested PR that was successfully built and tested by Jenkins and removed validating PR is currently being validated by Jenkins labels Sep 4, 2017
@akka-ci
Copy link

akka-ci commented Sep 4, 2017

Test PASSed.

def validNodeForGossip(node: UniqueAddress): Boolean =
node != selfUniqueAddress &&
((isInSameDc(node) && isReachableExcludingDownedObservers(node)) ||
// if cross DC we need to check pairwise unreachable observation
overview.reachability.isReachable(selfUniqueAddress, node))

def youngestMember: Member = {
val mbrs = membersInSameDc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 neat to move that here (and take into account dc)

case Event(TakeOverFromMe, _) ⇒
// already oldest, so confirm and continue like that
sender() ! HandOverToMe
stay
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable!

@patriknw
Copy link
Contributor Author

patriknw commented Sep 4, 2017

I'm merging this quickly since it's failing often. I will not close the ticket yet. I think there might be more things. Have to look at more logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tested PR that was successfully built and tested by Jenkins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants