You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "David Alves (JIRA)" <ji...@apache.org> on 2016/10/20 20:17:59 UTC
[jira] [Created] (KUDU-1715) Add a way to set ReplicaSelection to
the java client
David Alves created KUDU-1715:
---------------------------------
Summary: Add a way to set ReplicaSelection to the java client
Key: KUDU-1715
URL: https://issues.apache.org/jira/browse/KUDU-1715
Project: Kudu
Issue Type: Sub-task
Components: client
Affects Versions: 1.1.0
Reporter: David Alves
Assignee: Jean-Daniel Cryans
Fix For: 1.2.0
On the C++ client we're able to set a ReplicaSelection policy on the KuduScanner that hints at which replica should be chosen to perform the scan:
{code}
Status SetSelection(KuduClient::ReplicaSelection selection)
{code}
... where ReplicaSelection can have the following values:
{code}
LEADER_ONLY, ///< Select the LEADER replica.
CLOSEST_REPLICA, ///< Select the closest replica to the client,
///< or a random one if all replicas are equidistant.
FIRST_REPLICA ///< Select the first replica in the list.
{code}
Having the same functionality in the java client will increase our confidence in our tests that use and would be helpful for perf, since it's pretty common for leaders to get clustered and the java client only scans from the leader currently.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)