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

incrementColumnValue/Memcache bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.19.1
    • 0.19.2
    • regionserver
    • None
    • Ubuntu 8.10

    Description

      When I do a large amount of incrementColumnValue(), I got NullPointerException thrown from Memcache.java:

      2009-04-27 14:59:03,620 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 1 on 59710, call incrementColumnValue([B@1317bfb, [B@1c2a074, [B@b427c1, 1) from 127.0.0.1:52296: error: java.io.IOException: java.lang.NullPointerException
      java.io.IOException: java.lang.NullPointerException
      at org.apache.hadoop.hbase.regionserver.Memcache.get(Memcache.java:609)
      at org.apache.hadoop.hbase.regionserver.Memcache.get(Memcache.java:244)
      at org.apache.hadoop.hbase.regionserver.Memcache.get(Memcache.java:226)
      at org.apache.hadoop.hbase.regionserver.HRegion.incrementColumnValue(HRegion.java:2636)
      at org.apache.hadoop.hbase.regionserver.HRegionServer.incrementColumnValue(HRegionServer.java:2299)
      at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
      at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:912)
      (called from thrift interface)

      I consistently hit this exception after restarting Hbase (exactly the same location in my code)

      Quick fix is (with HBASE-1319.patch applied) at Memcache.java:609, say if (deletes != null) deletes.add(itKey);

      but probably better to change Memcache.java:226. Also the trunk already changed the StoreKey format and doesn't have this bug.

      Attachments

        1. HBASE-1352.patch
          0.6 kB
          atppp

        Activity

          People

            Unassigned Unassigned
            atppp atppp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: