Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-430 Consistent Operations
  3. KUDU-1715

Add a way to set ReplicaSelection to the java client

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • client
    • None

    Description

      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:

      Status SetSelection(KuduClient::ReplicaSelection selection)
      

      ... where ReplicaSelection can have the following values:

          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.
      

      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.

      Attachments

        Activity

          People

            jdcryans Jean-Daniel Cryans
            dralves David Alves
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: