HBase
  1. HBase
  2. HBASE-8648

Call to equals() comparing different types in HRegionServer.handleReportForDutyResponse()

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Here is related code:

                if (!this.serverNameFromMasterPOV.equals(this.isa.getHostName())) {
      

      serverNameFromMasterPOV is of type ServerName but this.isa.getHostName() returns String

      1. 8648-v1.txt
        0.9 kB
        Ted Yu
      2. 8648-v2.txt
        0.9 kB
        Ted Yu

        Activity

          People

          • Assignee:
            Ted Yu
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development