Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-4373

Local index variable length key can have trailing nulls while upserting

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.14.0
    • 5.0.0-alpha, 4.14.0, 4.13.2-cdh
    • None
    • None

    Description

      In the UpsertCompiler#setValues() , if it's a local index, the key is prefixed with regionPrefix. During that process, ptr.get() is called to get the base key, and the code assumes the entire array should be used. However, if it's a variable length key, we could have trailing nulls since the base key ptr array size is just an estimate.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            vincentpoon Vincent Poon
            vincentpoon Vincent Poon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment