-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-23288 - Backport HBASE-23251 (Add Column Family and Table Names… #822
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
|
@apurtell @openinx @xcangCRM - this is the branch-1 backport of HBASE-23251, which you reviewed last week. |
|
💔 -1 overall
This message was automatically generated. |
bb3a110 to
144808c
Compare
|
Fixed checkstyle nits, will now take a look at the test failures. |
|
Both failing tests pass locally for me, and neither looks related to this particular change. |
|
💔 -1 overall
This message was automatically generated. |
liuml07
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
| long size = ClassSize.align(ClassSize.OBJECT + | ||
| // Algorithm reference, encodingon, checksumtype, Encryption.Context reference | ||
| 5 * ClassSize.REFERENCE + | ||
| 7 * ClassSize.REFERENCE + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems this is the only difference when cherry-picking? I'd rather using the same expression as HBASE-23251 if possible so future change would find comfortable eyeballs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liuml07 - the change to heap size was required to get an existing test in TestHFileBlock to pass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gjacoby126 I guess my comment is more about format for easier review and future change.
5 * ClassSize.REFERENCE +
2 * Bytes.SIZEOF_INT +
// usesHBaseChecksum, includesMvcc, includesTags and compressTags
4 * Bytes.SIZEOF_BOOLEAN +
Bytes.SIZEOF_LONG);
is changed to
7 * ClassSize.REFERENCE +
2 * Bytes.SIZEOF_INT +
// usesHBaseChecksum, includesMvcc, includesTags and compressTags
4 * Bytes.SIZEOF_BOOLEAN +
2 * ClassSize.ARRAY +
Bytes.SIZEOF_LONG);
Instead, I think it's better to have the same expression as master branch.
// Algorithm, checksumType, encoding, Encryption.Context, hfileName reference,
5 * ClassSize.REFERENCE + 2 * Bytes.SIZEOF_INT +
// usesHBaseChecksum, includesMvcc, includesTags and compressTags
4 * Bytes.SIZEOF_BOOLEAN + Bytes.SIZEOF_LONG +
//byte[] headers for column family and table name
2 * ClassSize.ARRAY + 2 * ClassSize.REFERENCE);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
… to HFileContext) to branch-1
144808c to
0956bb0
Compare
|
🎊 +1 overall
This message was automatically generated. |
… to HFileContext) to branch-1