-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-22610 [BucketCache] Rename hbase.offheapcache.minblocksize. #386
Conversation
A small comment, i am not sure if these are the required changes for this ticket. But still kindly review when anyone has time. I tried to understand what else i can do but couldnt make other changes. |
Usually, we don't actual remove an old attribute, the way we prefer is marking the old attribute deprecated, then introduce a new one, and LOG warn message and remind them of the new one when user uses the old attribute. |
@Reidddddd |
@SyedMurtazaHassan There must be some in codebase, expecting your next pull request. |
@Reidddddd For example here is my understanding; Then further in the code BLOCKCACHE_BLOCKSIZE_KEY was used in a variable named blockSize. Now this variable will also be deprecated to something like blockSizeNew and even further in the code blockSize is used in a variable name bucketCache which will also be deprecated to bucketCacheNew. Is my understanding correct? All the related variables will also be deprecated right? |
💔 -1 overall
This message was automatically generated. |
Please refer to HBASE-22598, it is a typical example. Codes are better than words. |
💔 -1 overall
This message was automatically generated. |
…recated old attribute and introduced a new one
@Reidddddd |
…oved unnecessary import
💔 -1 overall
This message was automatically generated. |
LGTM,will commit tomorrow if no further comment from other members. |
@@ -17,9 +17,6 @@ | |||
*/ | |||
package org.apache.hadoop.hbase.io.hfile; | |||
|
|||
import static org.apache.hadoop.hbase.HConstants.BUCKET_CACHE_IOENGINE_KEY; | |||
import static org.apache.hadoop.hbase.HConstants.BUCKET_CACHE_SIZE_KEY; |
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.
Why this two configs got deleted?
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.
I accidentally included import static org.apache.hadoop.hbase.HConstants.* and removed the above two ones and didnt notice that. But now it is clean. Thanks.
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.
Please find the latest commit with the changes.
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
No description provided.