You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Jimmy Xiang (JIRA)" <ji...@apache.org> on 2014/01/20 20:45:23 UTC
[jira] [Comment Edited] (HBASE-10384) Failed to increment serveral
columns in one Increment
[ https://issues.apache.org/jira/browse/HBASE-10384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13876781#comment-13876781 ]
Jimmy Xiang edited comment on HBASE-10384 at 1/20/14 7:45 PM:
--------------------------------------------------------------
At first, want to point out: 0.94 doesn't have this issue.
[~stack], it is very likely related to moving Increment to be a Mutation. The root cause is that the cells in the familymap of Increment are not sorted any more (an ArrayList now).
was (Author: jxiang):
At first, want to point out: 0.94 doesn't have this issue.
[~stack], it is very likely related to moving Increment to be a Mutation. The root cause is that the cells are not sorted any more (an ArrayList now).
> Failed to increment serveral columns in one Increment
> -----------------------------------------------------
>
> Key: HBASE-10384
> URL: https://issues.apache.org/jira/browse/HBASE-10384
> Project: HBase
> Issue Type: Bug
> Affects Versions: 0.98.0, 0.99.0, 0.96.1.1
> Reporter: Jimmy Xiang
> Assignee: Jimmy Xiang
> Priority: Blocker
>
> We have some problem to increment several columns of a row in one increment request.
> This one works, we can get all columns incremented as expected:
> {noformat}
> Increment inc1 = new Increment(row);
> inc1.addColumn(cf, Bytes.toBytes("counter_A"), 1L);
> inc1.addColumn(cf, Bytes.toBytes("counter_B"), 1L);
> inc1.addColumn(cf, Bytes.toBytes("counter_C"), 1L);
> inc1.addColumn(cf, Bytes.toBytes("counter_D"), 1L);
> testTable.increment(inc1);
> {noformat}
> However, this one just increments counter_A, other columns are reset to 1 instead of incremented:
> {noformat}
> Increment inc1 = new Increment(row);
> inc1.addColumn(cf, Bytes.toBytes("counter_B"), 1L);
> inc1.addColumn(cf, Bytes.toBytes("counter_C"), 1L);
> inc1.addColumn(cf, Bytes.toBytes("counter_A"), 1L);
> inc1.addColumn(cf, Bytes.toBytes("counter_D"), 1L);
> testTable.increment(inc1);
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)