Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 162E7200B6A for ; Mon, 22 Aug 2016 09:19:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 14EBF160AB3; Mon, 22 Aug 2016 07:19:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 69EF1160AC3 for ; Mon, 22 Aug 2016 09:19:22 +0200 (CEST) Received: (qmail 94435 invoked by uid 500); 22 Aug 2016 07:19:21 -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 94169 invoked by uid 99); 22 Aug 2016 07:19:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2016 07:19:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 04F9D2C015F for ; Mon, 22 Aug 2016 07:19:21 +0000 (UTC) Date: Mon, 22 Aug 2016 07:19:21 +0000 (UTC) From: "ramkrishna.s.vasudevan (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-16460) Can't rebuild the BucketAllocator's data structures when BucketCache use FileIOEngine MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 22 Aug 2016 07:19:23 -0000 [ https://issues.apache.org/jira/browse/HBASE-16460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15430230#comment-15430230 ] ramkrishna.s.vasudevan commented on HBASE-16460: ------------------------------------------------ bq.This means over the restart of the RS the bucket sizes (which is configurable by users) should not get changed. If so there is a chance that we will not see a suitable bucket for a block and so we will fail this L2 cache init. We throw Exception! I think yes. But it seems to be valid correct? Otherwise there is no use of persistence? > Can't rebuild the BucketAllocator's data structures when BucketCache use FileIOEngine > ------------------------------------------------------------------------------------- > > Key: HBASE-16460 > URL: https://issues.apache.org/jira/browse/HBASE-16460 > Project: HBase > Issue Type: Bug > Components: BucketCache > Affects Versions: 2.0.0, 1.1.6, 1.3.1, 1.2.3, 0.98.22 > Reporter: Guanghao Zhang > Assignee: Guanghao Zhang > Attachments: HBASE-16460-v1.patch, HBASE-16460.patch > > > When bucket cache use FileIOEngine, it will rebuild the bucket allocator's data structures from a persisted map. So it should first read the map from persistence file then use the map to new a BucketAllocator. But now the code has wrong sequence in retrieveFromFile() method of BucketCache.java. > {code} > BucketAllocator allocator = new BucketAllocator(cacheCapacity, bucketSizes, backingMap, realCacheSize); > backingMap = (ConcurrentHashMap) ois.readObject(); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)