HBase
  1. HBase
  2. HBASE-7737

[89-fb] Force to generate the hostAddress:port as stringValue in HServerAddress

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: regionserver
    • Labels:
      None

      Description

      There is a serious bug in HServerAddress, who depends on the stringValue [class variable] for comparison. This variable is supposed to be host_ip_address:port.

      However, there is one constructor which allows user to pass a string as host_ip_address directly. This constructor is buggy because some caller may pass the host name instead of host ip address. And we found out one case in the HBase client.

      The fix is to normalize the stringValue generation by calling the existing function getHostAddressWithPort.

      For example:
      this.stringValue = getHostAddressWithPort();

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Rishit Shroff
            Reporter:
            Rishit Shroff
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development