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

Eliminate duplicate code for getNonRootIndexedKey in HFileBlockIndex

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-4, 4.0.0-alpha-1
    • 2.6.0, 3.0.0-beta-1
    • HFile
    • None

    Description

      The code to get the midkey by midLeafBlock in HFileBlockIndex.CellBasedKeyBlockIndexReader.midkey method is almost the same as HFileBlockIndex.BlockIndexReader.getNonRootIndexedKey, the code is somewhat complicated, we could use the HFileBlockIndex.BlockIndexReader.getNonRootIndexedKey directly in HFileBlockIndex.CellBasedKeyBlockIndexReader.midkey.

      Attachments

        Activity

          People

            comnetwork chenglei
            comnetwork chenglei
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: