You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "YifanZhang (Jira)" <ji...@apache.org> on 2019/08/24 07:02:00 UTC

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

     [ https://issues.apache.org/jira/browse/KUDU-2348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

YifanZhang reassigned KUDU-2348:
--------------------------------

    Assignee: YifanZhang  (was: Grant Henke)

> 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
>            Assignee: YifanZhang
>            Priority: Major
>              Labels: newbie
>
> 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
(v8.3.2#803003)