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

Batch operation can't handle the null result for Append/Increment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.0.0
    • Usability
    • None
    • Incompatible change, Reviewed
    • The result from server is changed from null to Result.EMPTY_RESULT when Append/Increment operation can't retrieve any data from server,

    Description

      But the Table#append and #increment can handle the null result...that is an inconsistent behavior for user.
      I have noticed two scenarios that server will return null result to user.

      1. postAppend/postIncrement return null
      2. mutation.isReturnResults() is false and preIncrementAfterRowLock/preAppendAfterRowLock doesn't return null

      We should wrap the null to empty result on server side. CP user should throw Exception rather than return null if they intend to say something is broken.

      Attachments

        1. HBASE-19437.v1.patch
          8 kB
          Chia-Ping Tsai
        2. HBASE-19437.v0.patch
          8 kB
          Chia-Ping Tsai
        3. HBASE-19437.v0.patch
          8 kB
          Chia-Ping Tsai

        Activity

          People

            chia7712 Chia-Ping Tsai
            chia7712 Chia-Ping Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: