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

Increment proto conversion is broken

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.4.0, 1.2.6, 1.3.2, 1.4.1, 1.5.0, 1.1.11, 1.3.3, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.3.2.1, 1.4.6, 1.4.8, 1.4.7, 1.4.9, 1.4.10, 1.3.4, 1.3.5, 1.3.6, 1.4.11, 1.4.12
    • Fix Version/s: 1.6.0, 1.3.7, 1.4.13
    • Component/s: Increment
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      While converting the request back to Increment using ProtobufUtil.toIncrement we incorrectly use the optimization to avoid copying the byte array(HBaseZeroCopyByteString#zeroCopyGetBytes) on a BoundedByteString. The optimization was only meant for LiteralByteString where it is safe to use the backing byte array, however it ends up being used to BoundedByteString which is a subclass of LiteralByteString. This essentially breaks increments since we end up creating wrong cells on the server side. 

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              abhishek.chouhan Abhishek Singh Chouhan
              Reporter:
              abhishek.chouhan Abhishek Singh Chouhan

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment