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

HConnectionManager.getHTableDescriptor() compares too much

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.94.4
    • 0.94.5
    • Client
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: