-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-26527 ArrayIndexOutOfBoundsException in KeyValueUtil.copyToNewK… #3904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…eyValue() Change-Id: I33099354f40b04b0f4f79f5cbd32445fe9d0d818
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
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. |
|
Thanks for the review @Apache9 , I have added the comment. |
Forgot to push it? Seems the PR remains unchanged... |
Change-Id: Ibf9419d391560a209404bb7dcc6b583502d12bda
|
@Apache9 Yes, I pushed to the wrong repo. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +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