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

Local index variable length key can have trailing nulls while upserting

    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

        1. PHOENIX-4373.v1.master.patch
          5 kB
          Vincent Poon

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: