Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 56AC417C89 for ; Tue, 30 Sep 2014 22:44:34 +0000 (UTC) Received: (qmail 81048 invoked by uid 500); 30 Sep 2014 22:44:34 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 80989 invoked by uid 500); 30 Sep 2014 22:44:34 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 80977 invoked by uid 99); 30 Sep 2014 22:44:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Sep 2014 22:44:33 +0000 Date: Tue, 30 Sep 2014 22:44:33 +0000 (UTC) From: "Nick Dimiduk (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-12123) Failed assertion in BucketCache after 11331 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-12123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14153917#comment-14153917 ] Nick Dimiduk commented on HBASE-12123: -------------------------------------- This patch works as intended. Conveniently, it applies across 0.98+. > Failed assertion in BucketCache after 11331 > ------------------------------------------- > > Key: HBASE-12123 > URL: https://issues.apache.org/jira/browse/HBASE-12123 > Project: HBase > Issue Type: Bug > Components: regionserver > Reporter: Enis Soztutar > Assignee: Nick Dimiduk > Fix For: 2.0.0, 0.98.7, 0.99.1 > > Attachments: 12123.patch > > > As reported by [~enis] > We have seen this in one of the test runs: > {code} > 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 > {code} > We are still running with assertions on in tests, and this block is failing the assertion. Seems important: > {code} > if (data instanceof HFileBlock) { > ByteBuffer sliceBuf = ((HFileBlock) data).getBufferReadOnlyWithHeader(); > sliceBuf.rewind(); > assert len == sliceBuf.limit() + HFileBlock.EXTRA_SERIALIZATION_SPACE; > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)