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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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

        Attachments

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

          Activity

            People

            • Assignee:
              yuzhihong@gmail.com Ted Yu
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: