[
https://issues.apache.org/jira/browse/HBASE-8849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13699731#comment-13699731
]
ramkrishna.s.vasudevan commented on HBASE-8849:
-----------------------------------------------
Ideally when we start using the codec in the HFiles, the code for reading the
KeyValue should be something like below
{code}
private final void readKeyValueLen() {
try {
// TODO : Can we specify the max value here
decoder.mark();
decoder.advance();
currKV = decoder.current();
decoder.reset();
} catch (IOException e) {
throw new RuntimeException("Error while reading the keyvalue len", e);
}
}
{code}
The above code reads the current cell and resets the position in the byte
buffer. Now if i need to handle mvcc, after this we have to read the mvcc
explicitly. Pls provide your opinion on this.
> CellCodec should write and read the memstoreTS/mvccVersion
> ----------------------------------------------------------
>
> Key: HBASE-8849
> URL: https://issues.apache.org/jira/browse/HBASE-8849
> Project: HBase
> Issue Type: Bug
> Affects Versions: 0.95.1
> Reporter: ramkrishna.s.vasudevan
> Assignee: ramkrishna.s.vasudevan
> Labels: keyvalue
> Fix For: 0.98.0
>
> Attachments: HBASE-8849_1.patch, HBASE-8849_2.patch
>
>
> This JIRA is wrt discussion over in HBASE-8496.
> Cell interface and the corresponding CellCodec provides a new way of
> serializing the Keyvalues.
> Cell interface supports getMvccVersion() and the javadoc says it could be > 0
> if it exists or 0 otherwise.
> But we don't tend to write/read the memstoreTS/mvccVersion in the Cell codec.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira