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 CACBD200B77 for ; Sat, 20 Aug 2016 04:59:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C958E160ABC; Sat, 20 Aug 2016 02:59: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 44A81160AAB for ; Sat, 20 Aug 2016 04:59:22 +0200 (CEST) Received: (qmail 56208 invoked by uid 500); 20 Aug 2016 02:59: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 56196 invoked by uid 99); 20 Aug 2016 02:59:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Aug 2016 02:59:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1CC552C0050 for ; Sat, 20 Aug 2016 02:59:21 +0000 (UTC) Date: Sat, 20 Aug 2016 02:59:21 +0000 (UTC) From: "Guanghao Zhang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (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: Sat, 20 Aug 2016 02:59:23 -0000 Guanghao Zhang created HBASE-16460: -------------------------------------- Summary: 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 Reporter: Guanghao Zhang Assignee: Guanghao Zhang 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)