[jira] [Updated] (PHOENIX-4373) Local index variable length key can have trailing nulls while upserting
[ https://issues.apache.org/jira/browse/PHOENIX-4373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] William Shen updated PHOENIX-4373: -- Fix Version/s: 4.13.2-cdh > Local index variable length key can have trailing nulls while upserting > --- > > Key: PHOENIX-4373 > URL: https://issues.apache.org/jira/browse/PHOENIX-4373 > Project: Phoenix > Issue Type: Bug >Affects Versions: 4.14.0 >Reporter: Vincent Poon >Assignee: Vincent Poon >Priority: Major > Fix For: 5.0.0-alpha, 4.14.0, 4.13.2-cdh > > Attachments: PHOENIX-4373.v1.master.patch > > > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (PHOENIX-4373) Local index variable length key can have trailing nulls while upserting
[ https://issues.apache.org/jira/browse/PHOENIX-4373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Josh Elser updated PHOENIX-4373: Fix Version/s: (was: 5.0) 5.0.0-alpha > Local index variable length key can have trailing nulls while upserting > --- > > Key: PHOENIX-4373 > URL: https://issues.apache.org/jira/browse/PHOENIX-4373 > Project: Phoenix > Issue Type: Bug >Affects Versions: 4.14.0 >Reporter: Vincent Poon >Assignee: Vincent Poon >Priority: Major > Fix For: 5.0.0-alpha, 4.14.0 > > Attachments: PHOENIX-4373.v1.master.patch > > > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (PHOENIX-4373) Local index variable length key can have trailing nulls while upserting
[ https://issues.apache.org/jira/browse/PHOENIX-4373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vincent Poon updated PHOENIX-4373: -- Attachment: PHOENIX-4373.v1.master.patch > Local index variable length key can have trailing nulls while upserting > --- > > Key: PHOENIX-4373 > URL: https://issues.apache.org/jira/browse/PHOENIX-4373 > Project: Phoenix > Issue Type: Bug >Affects Versions: 4.14.0 >Reporter: Vincent Poon >Assignee: Vincent Poon > Attachments: PHOENIX-4373.v1.master.patch > > > 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. -- This message was sent by Atlassian JIRA (v6.4.14#64029)