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 541F9200B7A for ; Mon, 5 Sep 2016 15:50:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 52AD9160ACB; Mon, 5 Sep 2016 13:50:22 +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 992D0160ABC for ; Mon, 5 Sep 2016 15:50:21 +0200 (CEST) Received: (qmail 42925 invoked by uid 500); 5 Sep 2016 13:50:20 -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 42914 invoked by uid 99); 5 Sep 2016 13:50:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2016 13:50:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8EA3B2C1B7F for ; Mon, 5 Sep 2016 13:50:20 +0000 (UTC) Date: Mon, 5 Sep 2016 13:50:20 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-16460) Can't rebuild the BucketAllocator's data structures when BucketCache uses FileIOEngine MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 05 Sep 2016 13:50:22 -0000 [ https://issues.apache.org/jira/browse/HBASE-16460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ted Yu updated HBASE-16460: --------------------------- Summary: Can't rebuild the BucketAllocator's data structures when BucketCache uses FileIOEngine (was: Can't rebuild the BucketAllocator's data structures when BucketCache use FileIOEngine) > Can't rebuild the BucketAllocator's data structures when BucketCache uses 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: 16460.v6.patch, 16460.v6.patch, HBASE-16460-branch-1-v6.patch, HBASE-16460-v1.patch, HBASE-16460-v2.patch, HBASE-16460-v2.patch, HBASE-16460-v3.patch, HBASE-16460-v4.patch, HBASE-16460-v5.patch, HBASE-16460-v5.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)