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

RowTooBigException is thrown when duplicate increment RPC call is attempted

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      Issue:
      `RowTooBigException` is thrown when a duplicate increment RPC call is attempted.

      Expected Behavior:
      1. The initial RPC increment call should time out for some reason.
      2. The duplicate RPC call should be converted to a GET request and fetch the result that I am trying to increment.
      3. The result should contain only the qualifier that I am attempting to increment.

      Actual Behavior:
      1. The initial RPC increment call timed out, which is expected.
      2. The duplicate RPC call is converted to a GET request but fails to clone the qualifier into the GET request.
      3. Hence, the GET request attempts to retrieve all qualifiers for the given row and columnfamily, resulting in a `RowTooBigException`.

      Steps to Reproduce:
      1. Ensure a row with a total value size exceeding `hbase.table.max.rowsize` (default = 1073741824) exists.
      2. Nonce property should be enabled `hbase.client.nonces.enabled` which is actually defaulted to true.
      3. Attempt to increment a qualifier against the same row.
      4. In my case, I am using a postIncrement co-processor which may cause a delay (longer than the RPC timeout property).
      5. A duplicate increment call should be triggered, which tries to get the value rather than increment it.
      6. The GET request actually tries to retrieve all the qualifiers for the row, resulting in a `RowTooBigException`.

      Insights:
      Upon further debugging, I found that qualifiers are not cloned into the GET instance due to incorrect usage of CellScanner.advance

      Fix Suggestion:
      Removing the `!` operation from `while (!CellScanner.advance)` may resolve the issue.

      Attached Exception Stack Trace for reference.

      Attachments

        1. RowTooBig_trace.txt
          7 kB
          Robin Infant A

        Issue Links

          Activity

            People

              fjvbn2003 youngju kim
              robiee17 Robin Infant A
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: