Grant Henke has uploaded this change for review. ( http://gerrit.cloudera.org:8080/17129
Change subject: KUDU-3248: Match C++ replica selection behavior of Java client ...................................................................... KUDU-3248: Match C++ replica selection behavior of Java client The C++ client currently uses a new random value every time a replica is selected. Alternatively, the Java client uses a static value that ensure the selection for a single process or application remains deterministic. This patch adjusts the C++ implimentation to match the Java client behavior. This is expected to be a good balance of efficient use of cache memory and distribution of load across the replicas given a single process will always get the same choice resulting in cache hits for follow up scans, but seperate processes will get a potentially different random selection. The reviews on the Java patch here have some good context and discussion: https://gerrit.cloudera.org/#/c/12158/ Change-Id: Iaa55e88b4a222fabfaa7fa521c24482cc6816b04 --- M java/kudu-client/src/main/java/org/apache/kudu/client/RemoteTablet.java M src/kudu/client/client-internal.cc M src/kudu/client/client-test.cc M src/kudu/client/client.h M src/kudu/common/common.proto 5 files changed, 87 insertions(+), 9 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/29/17129/1 -- To view, visit http://gerrit.cloudera.org:8080/17129 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Iaa55e88b4a222fabfaa7fa521c24482cc6816b04 Gerrit-Change-Number: 17129 Gerrit-PatchSet: 1 Gerrit-Owner: Grant Henke <[email protected]>
