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

Local index variable length key can have trailing nulls while upserting

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.14.0
    • Fix Version/s: 5.0.0-alpha, 4.14.0
    • Labels:
      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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: