Hello Kudu Jenkins,

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/12158

to look at the new patch set (#6).

Change subject: KUDU-2348: java client pick a random replica when no replica is 
local
......................................................................

KUDU-2348: java client pick a random replica when no replica is local

In RemoteTablet, getClosestServerInfo always return the last server
in hashmap iteration order, that would cause load to be concentrated
on some server especially when the number of tabletservers is small.
This commit use a more random approach to select server.

Change-Id: I3d70e45d4c9532bb32223c1dddd0936b4ff8fd99
---
M java/kudu-client/src/main/java/org/apache/kudu/client/RemoteTablet.java
M java/kudu-client/src/test/java/org/apache/kudu/client/TestRemoteTablet.java
2 files changed, 30 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/58/12158/6
--
To view, visit http://gerrit.cloudera.org:8080/12158
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I3d70e45d4c9532bb32223c1dddd0936b4ff8fd99
Gerrit-Change-Number: 12158
Gerrit-PatchSet: 6
Gerrit-Owner: Zhang Yifan <zhangyif...@xiaomi.com>
Gerrit-Reviewer: Kudu Jenkins (120)

Reply via email to