You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2018/03/15 00:37:00 UTC

[jira] [Created] (KUDU-2348) Java client doesn't pick a random replica when no replica is local

Todd Lipcon created KUDU-2348:
---------------------------------

             Summary: Java client doesn't pick a random replica when no replica is local
                 Key: KUDU-2348
                 URL: https://issues.apache.org/jira/browse/KUDU-2348
             Project: Kudu
          Issue Type: Improvement
          Components: client, java
    Affects Versions: 1.7.0
            Reporter: Todd Lipcon


In RemoteTablet we have this comment:
{code}
   * Get the information on the closest server. If none is closer than the others,
   * return the information on a randomly picked server.
{code}

However it appears that the "random" replica is deterministic - it's always the last replica in hashmap iteration order, which is likely to be the same order across all clients in the cluster. That would cause load to be concentrated on one replica rather than spread even if the clients are meaning to spread the load.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)