Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-14706

RegionLocationFinder should return multiple servernames by top host

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0, 1.3.0, 2.0.0
    • 1.2.0, 1.3.0, 1.1.3, 2.0.0
    • Balancer
    • None
    • Reviewed

    Description

      Multiple RS can run on the same host. But in current RegionLocationFinder, mapHostNameToServerName map one host to only one server. This will make LocalityCostFunction get wrong locality about region.

          // create a mapping from hostname to ServerName for fast lookup
          HashMap<String, ServerName> hostToServerName = new HashMap<String, ServerName>();
          for (ServerName sn : regionServers) {
            hostToServerName.put(sn.getHostname(), sn);
          }
      

      Attachments

        1. HBASE-14706.patch
          2 kB
          Guanghao Zhang
        2. HBASE-14706-trunk_v1.patch
          7 kB
          Guanghao Zhang
        3. HBASE-14706-trunk_v2.patch
          7 kB
          Guanghao Zhang
        4. HBASE-14706-trunk_v3.patch
          8 kB
          Guanghao Zhang
        5. HBASE-14706-trunk_v4.patch
          8 kB
          Guanghao Zhang
        6. HBASE-14706-branch-1.1.patch
          8 kB
          Guanghao Zhang

        Activity

          People

            zghao Guanghao Zhang
            zghao Guanghao Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: