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

Failed assertion in BucketCache after HBASE-11331

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.7, 0.99.1
    • regionserver
    • None

    Description

      As reported by enis

      We have seen this in one of the test runs:

      2014-09-26 05:31:19,788 WARN  [main-BucketCacheWriter-2] bucket.BucketCache: Failed doing drain
      java.lang.AssertionError
        at org.apache.hadoop.hbase.io.hfile.bucket.BucketCache$RAMQueueEntry.writeToCache(BucketCache.java:1239)
        at org.apache.hadoop.hbase.io.hfile.bucket.BucketCache$WriterThread.doDrain(BucketCache.java:773)
        at org.apache.hadoop.hbase.io.hfile.bucket.BucketCache$WriterThread.run(BucketCache.java:731)
        at java.lang.Thread.run(Thread.java:745)
      2014-09-26 05:31:19,925 INFO  [main-BucketCacheWriter-2] bucket.BucketCache: main-BucketCacheWriter-2 exiting, cacheEnabled=true
      2014-09-26 05:31:19,838 WARN  [main-BucketCacheWriter-1] bucket.BucketCache: Failed doing drain
      java.lang.AssertionError
        at org.apache.hadoop.hbase.io.hfile.bucket.BucketCache$RAMQueueEntry.writeToCache(BucketCache.java:1239)
        at org.apache.hadoop.hbase.io.hfile.bucket.BucketCache$WriterThread.doDrain(BucketCache.java:773)
        at org.apache.hadoop.hbase.io.hfile.bucket.BucketCache$WriterThread.run(BucketCache.java:731)
        at java.lang.Thread.run(Thread.java:745)
      2014-09-26 05:31:19,791 WARN  [main-BucketCacheWriter-0] bucket.BucketCache: Failed doing drain
      java.lang.AssertionError
        at org.apache.hadoop.hbase.io.hfile.bucket.BucketCache$RAMQueueEntry.writeToCache(BucketCache.java:1239)
        at org.apache.hadoop.hbase.io.hfile.bucket.BucketCache$WriterThread.doDrain(BucketCache.java:773)
        at org.apache.hadoop.hbase.io.hfile.bucket.BucketCache$WriterThread.run(BucketCache.java:731)
        at java.lang.Thread.run(Thread.java:745)
      2014-09-26 05:31:19,926 INFO  [main-BucketCacheWriter-0] bucket.BucketCache: main-BucketCacheWriter-0 exiting, cacheEnabled=true
      2014-09-26 05:31:19,926 INFO  [main-BucketCacheWriter-1] bucket.BucketCache: main-BucketCacheWriter-1 exiting, cacheEnabled=true
      

      We are still running with assertions on in tests, and this block is failing the assertion. Seems important:

              if (data instanceof HFileBlock) {
                ByteBuffer sliceBuf = ((HFileBlock) data).getBufferReadOnlyWithHeader();
                sliceBuf.rewind();
                assert len == sliceBuf.limit() + HFileBlock.EXTRA_SERIALIZATION_SPACE;
      

      Attachments

        1. 12123.patch
          1 kB
          Nick Dimiduk

        Issue Links

          Activity

            People

              ndimiduk Nick Dimiduk
              enis Enis Soztutar
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: