Versions Compared

Key

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

...

  1. If the client rack is specified and there are partition leaders in the same rack, select the next partition from those “nearby” partitions. The current algorithm is followed in the other aspects, including load balancing.
  2. Select the next partition from all partitions following the current algorithm in the following cases:
    1. if the client rack is not specified;
    2. if there are no partitions with leaders in the same rack as the client;
    3. if all the “nearby” partitions are unavailable.

...