Uh oh!
There was an error while loading. Please reload this page.
HBASE-26527 ArrayIndexOutOfBoundsException in KeyValueUtil.copyToNewK… - #3904
Conversation
…eyValue() Change-Id: I33099354f40b04b0f4f79f5cbd32445fe9d0d818
Apache-HBase
commented
Dec 1, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Dec 1, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Dec 1, 2021
🎊 +1 overall
This message was automatically generated. |
Apache9
commented
Dec 4, 2021
Checked the code in KeyValueUtils, there is a method getSerializedSize It seems that if withTags is true, we will always call cell.getSerializedSize directly. I guess this is why we use getSerializedSize there. So let's add some comments to say that, the byte array is not used for serializaing, as it will copy all the fields such as column family, qualifier, etc, so it is not suitable to call getSerializedSize here, we should calculate it with all the fields. Thanks. |
stoty
commented
Dec 6, 2021
Thanks for the review @Apache9 , I have added the comment. |
Apache9
commented
Dec 6, 2021
Forgot to push it? Seems the PR remains unchanged... |
Change-Id: Ibf9419d391560a209404bb7dcc6b583502d12bda
stoty
commented
Dec 6, 2021
@Apache9 Yes, I pushed to the wrong repo. |
Apache-HBase
commented
Dec 6, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Dec 6, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Dec 6, 2021
🎊 +1 overall
This message was automatically generated. |
…eyValue() (#3904) Signed-off-by: Andrew Purtell <apurtell@apache.org> Signed-off-by: Duo Zhang <zhangduo@apache.org>
…eyValue() (#3904) Signed-off-by: Andrew Purtell <apurtell@apache.org> Signed-off-by: Duo Zhang <zhangduo@apache.org>
…eyValue() (apache#3904) Signed-off-by: Andrew Purtell <apurtell@apache.org> Signed-off-by: Duo Zhang <zhangduo@apache.org>
…eyValue()
Change-Id: I33099354f40b04b0f4f79f5cbd32445fe9d0d818