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

TestHRegionWithInMemoryFlush fails with NPE

    XMLWordPrintableJSON

Details

    Description

      Found this one when testing 2.1.3.

      Exception in thread "PutThread" java.lang.NullPointerException
              at org.apache.hadoop.hbase.regionserver.CompactingMemStore.checkActiveSize(CompactingMemStore.java:392)
              at org.apache.hadoop.hbase.regionserver.AbstractMemStore.internalAdd(AbstractMemStore.java:307)
              at org.apache.hadoop.hbase.regionserver.AbstractMemStore.add(AbstractMemStore.java:132)
              at org.apache.hadoop.hbase.regionserver.AbstractMemStore.add(AbstractMemStore.java:112)
              at org.apache.hadoop.hbase.regionserver.HStore.add(HStore.java:750)
              at org.apache.hadoop.hbase.regionserver.HRegion.applyToMemStore(HRegion.java:4420)
              at org.apache.hadoop.hbase.regionserver.HRegion.access$500(HRegion.java:226)
              at org.apache.hadoop.hbase.regionserver.HRegion$BatchOperation.applyFamilyMapToMemStore(HRegion.java:3479)
              at org.apache.hadoop.hbase.regionserver.HRegion$BatchOperation.lambda$writeMiniBatchOperationsToMemStore$0(HRegion.java:3170)
              at org.apache.hadoop.hbase.regionserver.HRegion$BatchOperation.visitBatchOperations(HRegion.java:3103)
              at org.apache.hadoop.hbase.regionserver.HRegion$BatchOperation.writeMiniBatchOperationsToMemStore(HRegion.java:3162)
              at org.apache.hadoop.hbase.regionserver.HRegion$MutationBatchOperation.writeMiniBatchOperationsToMemStore(HRegion.java:3644)
              at org.apache.hadoop.hbase.regionserver.HRegion.doMiniBatchMutate(HRegion.java:4058)
              at org.apache.hadoop.hbase.regionserver.HRegion.batchMutate(HRegion.java:3991)
              at org.apache.hadoop.hbase.regionserver.HRegion.batchMutate(HRegion.java:3922)
              at org.apache.hadoop.hbase.regionserver.HRegion.batchMutate(HRegion.java:3913)
              at org.apache.hadoop.hbase.regionserver.HRegion.batchMutate(HRegion.java:3927)
              at org.apache.hadoop.hbase.regionserver.HRegion.doBatchMutate(HRegion.java:4254)
              at org.apache.hadoop.hbase.regionserver.HRegion.put(HRegion.java:3046)
      

      And later the test is stuck, since the MVCC can not be advanced any more.

      Attachments

        1. HBASE-21840.patch
          2 kB
          Duo Zhang

        Issue Links

          Activity

            People

              zhangduo Duo Zhang
              zhangduo Duo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: