[
https://issues.apache.org/jira/browse/HBASE-20789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16524782#comment-16524782
]
Zheng Hu commented on HBASE-20789:
----------------------------------
Add some log for digging, and I think it's related to here [1]
When cache a block, the BucketCache put it into ramCache then write to
io-engine async. if the blockWithoutNextBlockMetadata is still in ramCache,
then the blockWithNextBlockMetadata will not be put into ramCache ( putIfAbsent
), so the assert failed. the putIfAbsent was introduced in HBASE-13301,
because [~Apache9] fixed another race bug...
1.
https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketCache.java#L457
> TestBucketCache#testCacheBlockNextBlockMetadataMissing is flaky
> ---------------------------------------------------------------
>
> Key: HBASE-20789
> URL: https://issues.apache.org/jira/browse/HBASE-20789
> Project: HBase
> Issue Type: Bug
> Reporter: Zheng Hu
> Assignee: Zheng Hu
> Priority: Major
> Attachments: bucket-33718.out
>
>
> The UT failed frequently in our internal branch-2... Will dig into the UT.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)