[
https://issues.apache.org/jira/browse/HBASE-9032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13722030#comment-13722030
]
Aditya Kishore commented on HBASE-9032:
---------------------------------------
Jean-Marc,
With my patch, r1.getBytes() is always going to be not null (unless someone
modifies it).
What I was going for is verification that deserialization is in sync with
serialization, i.e. you can create a valid Result object using the returned
ImmutableBytesWritable and that both are equal. compareResults() throws
exception if both the Result objects are not equal.
> Result.getBytes() returns null if backed by KeyValue array
> ----------------------------------------------------------
>
> Key: HBASE-9032
> URL: https://issues.apache.org/jira/browse/HBASE-9032
> Project: HBase
> Issue Type: Bug
> Components: Client
> Affects Versions: 0.94.9
> Reporter: Aditya Kishore
> Assignee: Aditya Kishore
> Fix For: 0.94.11
>
> Attachments: HBASE-9032.patch, HBASE-9032.patch, HBASE-9032.patch
>
>
> This applies only to 0.94 (and earlier) branch.
> If the Result object was constructed using either of Result(KeyValue[]) or
> Result(List<KeyValue>), calling Result.getBytes() returns null instead of the
> serialized ImmutableBytesWritable object.
--
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