You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Anoop Sam John (JIRA)" <ji...@apache.org> on 2014/09/10 18:22:35 UTC
[jira] [Updated] (HBASE-11934) Support KeyValueCodec to encode non
KeyValue cells.
[ https://issues.apache.org/jira/browse/HBASE-11934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anoop Sam John updated HBASE-11934:
-----------------------------------
Attachment: HBASE-11934.patch
> Support KeyValueCodec to encode non KeyValue cells.
> ---------------------------------------------------
>
> Key: HBASE-11934
> URL: https://issues.apache.org/jira/browse/HBASE-11934
> Project: HBase
> Issue Type: Sub-task
> Components: regionserver, Scanners
> Affects Versions: 0.99.0
> Reporter: Anoop Sam John
> Assignee: Anoop Sam John
> Fix For: 2.0.0, 0.99.1
>
> Attachments: HBASE-11934.patch
>
>
> We have KeyValueCodec as the default RPC codec now. This can only encode KeyValue types and need to convert any non KV cell to KeyValue format. This is a expensive op.
> {code}
> // This is crass and will not work when KV changes. Also if passed a non-kv Cell, it will
> // make expensive copy.
> // Do not write tags over RPC
> KeyValue.oswrite((KeyValue) KeyValueUtil.ensureKeyValue(cell), this.out, false);
> {code}
> Now we want Cell to be in entire read path and don't want any copy until we write the cell to client.
> The optimization done in the DBE of avoiding copying of value bytes was also not getting real advantage bacause of this ensureKeyValue() call at the Codec.
> We can encode and write non KeyValue cells with KV serialization format and avoid the recreate.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)