hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-16460) Can't rebuild the BucketAllocator's data structures when BucketCache uses FileIOEngine
Date Tue, 06 Sep 2016 05:45:21 GMT

    [ https://issues.apache.org/jira/browse/HBASE-16460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15466494#comment-15466494
] 

Hudson commented on HBASE-16460:
--------------------------------

SUCCESS: Integrated in Jenkins build HBase-1.2-JDK8 #20 (See [https://builds.apache.org/job/HBase-1.2-JDK8/20/])
HBASE-16460 Can't rebuild the BucketAllocator's data structures when (tedyu: rev 0bdcfd90e30790b2891b84de0403487cba1af44b)
* (edit) hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/bucket/TestBucketCache.java
* (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketCache.java
* (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketAllocator.java
* (edit) hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/CacheTestUtils.java


> 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<BlockCacheKey, BucketEntry>) ois.readObject();
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message