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 15F35200B84 for ; Tue, 6 Sep 2016 02:31:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 14902160ACC; Tue, 6 Sep 2016 00:31: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 5AD89160ABC for ; Tue, 6 Sep 2016 02:31:22 +0200 (CEST) Received: (qmail 62665 invoked by uid 500); 6 Sep 2016 00:31: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 62617 invoked by uid 99); 6 Sep 2016 00:31:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2016 00:31:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2BDDE2C1B80 for ; Tue, 6 Sep 2016 00:31:21 +0000 (UTC) Date: Tue, 6 Sep 2016 00:31:21 +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: Tue, 06 Sep 2016 00:31:23 -0000 [ https://issues.apache.org/jira/browse/HBASE-16460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ted Yu updated HBASE-16460: --------------------------- Resolution: Fixed Hadoop Flags: Reviewed Fix Version/s: 1.2.4 1.1.7 Status: Resolved (was: Patch Available) > 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 > Fix For: 2.0.0, 1.3.0, 1.4.0, 1.1.7, 1.2.4 > > 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)