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

OfflineMetaRepair tool fails with NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 2.1.0, 2.0.0
    • Fix Version/s: 3.0.0
    • Component/s: hbck
    • Labels:
      None

      Description

      OfflineMetaRepair fails with NPE, execute below command

      hbase org.apache.hadoop.hbase.util.hbck.OfflineMetaRepair -fix

       

      2019-01-02 16:22:56,387 INFO [main] regionserver.HRegion: Opened 1588230740; next sequenceid=28
      2019-01-02 16:22:56,459 ERROR [main] hbck.OfflineMetaRepair: Bailed out due to: 
      java.lang.NullPointerException
       at org.apache.hadoop.hbase.regionserver.MemStoreLABImpl.getOrMakeChunk(MemStoreLABImpl.java:335)
       at org.apache.hadoop.hbase.regionserver.MemStoreLABImpl.copyCellInto(MemStoreLABImpl.java:193)
       at org.apache.hadoop.hbase.regionserver.MemStoreLABImpl.copyCellInto(MemStoreLABImpl.java:115)
       at org.apache.hadoop.hbase.regionserver.Segment.maybeCloneWithAllocator(Segment.java:183)
       at org.apache.hadoop.hbase.regionserver.AbstractMemStore.maybeCloneWithAllocator(AbstractMemStore.java:334)
       at org.apache.hadoop.hbase.regionserver.AbstractMemStore.doAdd(AbstractMemStore.java:157)
       at org.apache.hadoop.hbase.regionserver.AbstractMemStore.doAddOrUpsert(AbstractMemStore.java:147)
       at org.apache.hadoop.hbase.regionserver.AbstractMemStore.add(AbstractMemStore.java:117)
       at org.apache.hadoop.hbase.regionserver.AbstractMemStore.add(AbstractMemStore.java:111)
       at org.apache.hadoop.hbase.regionserver.HStore.add(HStore.java:750)
       at org.apache.hadoop.hbase.regionserver.HRegion.applyToMemStore(HRegion.java:4435)
       at org.apache.hadoop.hbase.regionserver.HRegion.access$500(HRegion.java:228)
       at org.apache.hadoop.hbase.regionserver.HRegion$BatchOperation.applyFamilyMapToMemStore(HRegion.java:3495)
       at org.apache.hadoop.hbase.regionserver.HRegion$BatchOperation.lambda$writeMiniBatchOperationsToMemStore$0(HRegion.java:3186)
       at org.apache.hadoop.hbase.regionserver.HRegion$BatchOperation.visitBatchOperations(HRegion.java:3119)
       at org.apache.hadoop.hbase.regionserver.HRegion$BatchOperation.writeMiniBatchOperationsToMemStore(HRegion.java:3178)
       at org.apache.hadoop.hbase.regionserver.HRegion$MutationBatchOperation.writeMiniBatchOperationsToMemStore(HRegion.java:3660)
       at org.apache.hadoop.hbase.regionserver.HRegion.doMiniBatchMutate(HRegion.java:4073)
       at org.apache.hadoop.hbase.regionserver.HRegion.batchMutate(HRegion.java:4006)
       at org.apache.hadoop.hbase.regionserver.HRegion.batchMutate(HRegion.java:3937)
       at org.apache.hadoop.hbase.regionserver.HRegion.batchMutate(HRegion.java:3928)
       at org.apache.hadoop.hbase.util.HBaseFsck.rebuildMeta(HBaseFsck.java:1665)
       at org.apache.hadoop.hbase.util.hbck.OfflineMetaRepair.main(OfflineMetaRepair.java:121)
      
      

        Attachments

        1. HBASE-21665.patch
          1 kB
          Pankaj Kumar

          Issue Links

            Activity

              People

              • Assignee:
                pankaj2461 Pankaj Kumar
                Reporter:
                pankaj2461 Pankaj Kumar
              • Votes:
                0 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: