hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashish Singhi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-13305) Get(Get get) is not copying the row key
Date Sat, 21 Mar 2015 14:21:38 GMT

     [ https://issues.apache.org/jira/browse/HBASE-13305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ashish Singhi updated HBASE-13305:
----------------------------------
        Fix Version/s: 0.98.13
                       1.1.0
                       1.0.1
                       2.0.0
    Affects Version/s: 0.98.12
               Status: Patch Available  (was: Open)

> Get(Get get) is not copying the row key
> ---------------------------------------
>
>                 Key: HBASE-13305
>                 URL: https://issues.apache.org/jira/browse/HBASE-13305
>             Project: HBase
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.98.12, 1.0.0
>            Reporter: Lars George
>            Assignee: Ashish Singhi
>             Fix For: 2.0.0, 1.0.1, 1.1.0, 0.98.13
>
>         Attachments: HBASE-13305.patch
>
>
> I tried this:
> {code}
>     Get get1 = new Get(Bytes.toBytes("row1"));
>     get1.addColumn(Bytes.toBytes("colfam1"), Bytes.toBytes("qual1"));
>     Get get2 = new Get(get1);
>     Result result = table.get(get2);
> {code}
> It fails (eventually) with: 
> {noformat}
> Mar 20, 2015 1:47:13 PM org.apache.hadoop.hbase.client.RpcRetryingCaller callWithRetries
> INFO: Call exception, tries=13, retries=35, started=170167 ms ago, cancelled=false, msg=row
'null' on table 'testtable' at null
> {noformat}
> And since you cannot assign a row key other than using the only other constructor {{Get(byte[]
row)}} it means that above copy of get seems useless.
> Need to fix so that row is copied too.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message