Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-2348

Java client doesn't pick a random replica when no replica is local

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.11.0
    • client, java

    Description

      In RemoteTablet we have this comment:

         * Get the information on the closest server. If none is closer than the others,
         * return the information on a randomly picked server.
      

      However it appears that the "random" replica is deterministic - it's always the last replica in hashmap iteration order, which is likely to be the same order across all clients in the cluster. That would cause load to be concentrated on one replica rather than spread even if the clients are meaning to spread the load.

      Attachments

        Activity

          People

            zhangyifan27 YifanZhang
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: