Tony Foerster has uploaded this change for review. ( http://gerrit.cloudera.org:8080/11088
Change subject: KUDU-2348 return random replica from RemoteTablet ...................................................................... KUDU-2348 return random replica from RemoteTablet RemoteTablet is returning a non-random replica based on the hash of the tablet servers when no local replica exists and a leader isn't requested. This commit changes uses a random seed to return a random replica per RemoteTablet instance. RemoteTablet instances are kept in the TabletLocationsCache for 1 hour by default. When the cache is invalidated and a new RemoteReplica is created, a new random replica will be returned. It's possible to return a completely random replica, but this would make implementing features like a scanner keepalive more difficult. Change-Id: I6d0b0f92dafc56786c2e915f88daf83afedc8f90 --- 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, 41 insertions(+), 24 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/88/11088/1 -- To view, visit http://gerrit.cloudera.org:8080/11088 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I6d0b0f92dafc56786c2e915f88daf83afedc8f90 Gerrit-Change-Number: 11088 Gerrit-PatchSet: 1 Gerrit-Owner: Tony Foerster <[email protected]>
