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

LoadIncrementalHFiles should be able to handle CFs with blooms

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.90.4
    • 0.90.5
    • None
    • None

    Description

      When LoadIncrementalHFiles loads a store file that crosses region boundaries, it will split the file at the boundary to create two store files. If the store file is for a column family that has a bloom filter, then a "java.lang.ArithmeticException: / by zero" will be raised because ByteBloomFilter() is called with maxKeys of 0.

      The included patch assumes that the number of keys in each split child will be equal to the number of keys in the parent's bloom filter (instead of 0). This is an overestimate, but it's safe and easy.

      Attachments

        1. HBASE-4449-trunk-testsonly.patch
          3 kB
          Dave Revell
        2. HBASE-4449-v2.patch
          4 kB
          Dave Revell
        3. HBASE-4449.patch
          1 kB
          Dave Revell

        Activity

          People

            dave_revell Dave Revell
            dave_revell Dave Revell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: