[ https://issues.apache.org/jira/browse/HBASE-13070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
zhangduo updated HBASE-13070: ----------------------------- Attachment: HBASE-13070-0.98.patch Patch for 0.98. BlockCacheKey uses DataBlockEncoding as part of key on 0.98, but it is not returned within CachedBlock, so just use evictBlocksByHfileName to clearBlockCache. And LruBlockCache.clearCache does not reset elements count on 0.98. Add one line. I suggest to wait for the PreCommit-Build to finish before commiting the patch since it is not just a 'resolve conflicts' patch. Thanks. [~apurtell] [~tedyu] > Fix TestCacheOnWrite > -------------------- > > Key: HBASE-13070 > URL: https://issues.apache.org/jira/browse/HBASE-13070 > Project: HBase > Issue Type: Bug > Components: test > Affects Versions: 2.0.0 > Reporter: zhangduo > Assignee: zhangduo > Fix For: 2.0.0, 1.0.1, 1.1.0, 0.98.11 > > Attachments: HBASE-13070-0.98.patch, HBASE-13070.patch, > HBASE-13070_1.patch, HBASE-13070_2.patch > > > TestCacheOnWrite uses TestHFileWriterV2.randomOrderedKey to generate a random > byte array, then use first 32 bytes as row and remaining part as family and > qualifier. But TestHFileWriterV2.randomOrderedKey may return a byte array > only contains 32 bytes, so there will be zero length family and qualifier. -- This message was sent by Atlassian JIRA (v6.3.4#6332)