Details
Description
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:
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);
However, this one just increments counter_A, other columns are reset to 1 instead of incremented:
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);