HBase
  1. HBase
  2. HBASE-3158

Bloom File Writes Broken if keySize is large

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.90.0
    • Fix Version/s: 0.90.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Yesterday, on our cluster, a region compact() kept crashing at giving this stack trace

      2010-10-25 08:48:28,330 ERROR org.apache.hadoop.hbase.regionserver.CompactSplitThread: Compaction failed for region MailBox_dark_launch_2010_10-04,4b64b600,1286302852538.9183a3b91ebd289bab7724d028cffa69.
      java.lang.IllegalArgumentException: maxValue must be > 0
      at org.apache.hadoop.hbase.util.ByteBloomFilter.sanityCheck(ByteBloomFilter.java:170)
      at org.apache.hadoop.hbase.util.ByteBloomFilter.<init>(ByteBloomFilter.java:156)
      at org.apache.hadoop.hbase.regionserver.StoreFile$Writer.<init>(StoreFile.java:707)
      at org.apache.hadoop.hbase.regionserver.StoreFile.createWriter(StoreFile.java:566)
      at org.apache.hadoop.hbase.regionserver.Store.createWriterInTmp(Store.java:504)
      at org.apache.hadoop.hbase.regionserver.Store.compact(Store.java:817)
      at org.apache.hadoop.hbase.regionserver.Store.compact(Store.java:678)
      at org.apache.hadoop.hbase.regionserver.HRegion.compactStores(HRegion.java:842)
      at org.apache.hadoop.hbase.regionserver.HRegion.compactStores(HRegion.java:793)
      at org.apache.hadoop.hbase.regionserver.CompactSplitThread.run(CompactSplitThread.java:103)

      The problem is that we are oveflowing "int" for "bitSize". The number of keys is about 272M, and we are using about 11 bit per key. So, bitSize ends up being > 2G..

      1. HBASE-3158.patch
        12 kB
        Nicolas Spiegelberg

        Activity

        Nicolas Spiegelberg created issue -
        Nicolas Spiegelberg made changes -
        Field Original Value New Value
        Attachment HBASE-3158.patch [ 12458121 ]
        Nicolas Spiegelberg made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        stack made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Fix Version/s 0.90.0 [ 12313607 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Nicolas Spiegelberg
            Reporter:
            Nicolas Spiegelberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development