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

Failed to increment serveral columns in one Increment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.98.0, 0.99.0, 0.96.1.1
    • 0.98.0, 0.96.2, 0.99.0
    • None
    • None
    • 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

        1. hbase-10384.patch
          3 kB
          Jimmy Xiang

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: