[
https://issues.apache.org/jira/browse/HBASE-22005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16803734#comment-16803734
]
Zheng Hu commented on HBASE-22005:
----------------------------------
Got the root cause now, when reading mob hfile, we do the following:
1. read cell the normal hfile (HFile-A);
2. parse cell's the hfile name (HFile-B) which store the actual value part;
3. read value part from HFile-B;
4. just close the HFile-B;
5. return the cell to rpc-client;
the problem is in step#4, once we close HFile-B, all blocks allocated from
allocator will be free, which means in step.5 we read cells from an freed
block ... so the encoding was messed up .
> Use ByteBuff's refcnt to track the life cycle of data block
> -----------------------------------------------------------
>
> Key: HBASE-22005
> URL: https://issues.apache.org/jira/browse/HBASE-22005
> Project: HBase
> Issue Type: Sub-task
> Reporter: Zheng Hu
> Assignee: Zheng Hu
> Priority: Major
> Attachments: HBASE-22005.HBASE-21879.v1.patch,
> HBASE-22005.HBASE-21879.v2.patch, HBASE-22005.HBASE-21879.v3.patch,
> HBASE-22005.HBASE-21879.v4.patch, HBASE-22005.HBASE-21879.v5.patch,
> HBASE-22005.HBASE-21879.v6.patch, HBASE-22005.HBASE-21879.v7.patch,
> HBASE-22005.HBASE-21879.v8.patch, cell-encoding.jpeg
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)