Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-10384

Failed to increment serveral columns in one Increment

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.98.0, 0.99.0, 0.96.1.1
    • Fix Version/s: 0.98.0, 0.96.2, 0.99.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      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);
      

        Attachments

          Activity

            People

            • Assignee:
              jxiang Jimmy Xiang
              Reporter:
              jxiang Jimmy Xiang
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: