You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hudson (Commented) (JIRA)" <ji...@apache.org> on 2012/02/05 03:28:54 UTC

[jira] [Commented] (HBASE-5271) Result.getValue and Result.getColumnLatest return the wrong column.

    [ https://issues.apache.org/jira/browse/HBASE-5271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13200638#comment-13200638 ] 

Hudson commented on HBASE-5271:
-------------------------------

Integrated in HBase-0.92-security #90 (See [https://builds.apache.org/job/HBase-0.92-security/90/])
    HBASE-5271  Result.getValue and Result.getColumnLatest return the wrong column (Ghais Issa)

tedyu : 
Files : 
* /hbase/branches/0.92/CHANGES.txt
* /hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/KeyValue.java
* /hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/TestKeyValue.java

                
> Result.getValue and Result.getColumnLatest return the wrong column.
> -------------------------------------------------------------------
>
>                 Key: HBASE-5271
>                 URL: https://issues.apache.org/jira/browse/HBASE-5271
>             Project: HBase
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 0.90.5
>            Reporter: Ghais Issa
>            Assignee: Ghais Issa
>             Fix For: 0.94.0, 0.90.7, 0.92.1
>
>         Attachments: 5271-90.txt, 5271-v2.txt, fixKeyValueMatchingColumn.diff, testGetValue.diff
>
>
> In the following example result.getValue returns the wrong column
> KeyValue kv = new KeyValue(Bytes.toBytes("r"), Bytes.toBytes("24"), Bytes.toBytes("2"), Bytes.toBytes(7L));
> Result result = new Result(new KeyValue[] { kv });
> System.out.println(Bytes.toLong(result.getValue(Bytes.toBytes("2"), Bytes.toBytes("2")))); //prints 7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira