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

Rewrite getClosestAtOrJustBefore; doesn't scale as currently written

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      As currently written, as a table gets bigger, the number of rows .META. needs to keep count of grows.

      As written, our getClosestAtOrJustBefore, goes through every storefile and in each picks up any row that could be a possible candidate for closest before. It doesn't just get the closest from the storefile, but all keys that are closest before. Its not selective because how can it tell at the store file level which of the candidates will survive deletes that are sitting in later store files or up in memcache.

      So, if a store file has keys 0-10 and we ask to get the row that is closest or just before 7, it returns rows 0-7.. and so on per store file.

      Can bet big and slow weeding key wanted.

      Attachments

        1. 792.patch
          25 kB
          Michael Stack

        Activity

          People

            stack Michael Stack
            stack Michael Stack
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: