Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Gliffy Diagram
namefail node - general case
pagePin1
Table of Contents

Basic definitions

...

Gliffy Diagram
size600
namejoin node overview
pagePin56

Join request message

Starting point for join process is joinTopology method presented in both ServerImpl and ClientImpl classes.

...

As servers are organized into ring each node can easily detect failure of its next neighbor node when sending of next discovery message fails.
However process of removing failed node from the ring (there is a special structure called "ring" on each server node which reflects topology view of current node, see ServerImpl#ring field) is not that simple and has to be managed by coordinator. It contains two steps.

Gliffy Diagram
size600
namejoin node overview
pagePin6

Step one

On the first step server detected that it next has failed adds it to the special local map called failedNodes. Using this map it will filter failed nodes from all servers presented in the ring until the second step is completed for each failed node.

...