[
https://issues.apache.org/jira/browse/HBASE-11871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14117786#comment-14117786
]
Lars Hofhansl commented on HBASE-11871:
---------------------------------------
Agreed. This is the next step. KVUtil.ensureKeyValue() was a necessary crutch
to get us here, now it's time to remove it.
I guess just like I deprecated the use of KeyValue.getBuffer() we should go
through the uses and classify them into those that can easily removed and those
that will need work. Then we remove the easy cases and deprecate
KVUtil.ensureKeyValue(). Well... And then somebody has to deal with the hard
cases :)
> Avoid usage of KeyValueUtil#ensureKeyValue
> ------------------------------------------
>
> Key: HBASE-11871
> URL: https://issues.apache.org/jira/browse/HBASE-11871
> Project: HBase
> Issue Type: Improvement
> Components: regionserver
> Reporter: Anoop Sam John
> Assignee: Anoop Sam John
>
> Now we try to use diff impls of Cells (other than KV) in server side for
> optimizations. (HBASE-11870 is one like this) Having code
> KeyValueUtil#ensureKeyValue can be dangerous as it recreate the Cell and do
> buffer copy. This is an umbrella issue. Will raise small sub tasks in
> specific areas and tackle this.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)