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

HConnectionManager.getHTableDescriptor() compares too much

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.94.4
    • Fix Version/s: 0.94.5
    • Component/s: Client
    • Labels:
      None

      Description

      in 0.94 getHTableDescriptor() looks at every htd instead of returning at the first found. (Trunks has already the early exit)

      for (HTableDescriptor htd: htds) {
        if (Bytes.equals(tableName, htd.getName())) {
          hTableDescriptor = htd;
        }
      }
      return htableDescriptor
      

        Attachments

        1. HBASE-7592-v0.patch
          1 kB
          Matteo Bertozzi
        2. HBASE-7592-v1.patch
          1 kB
          Matteo Bertozzi

          Activity

            People

            • Assignee:
              mbertozzi Matteo Bertozzi
              Reporter:
              mbertozzi Matteo Bertozzi
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: