-
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-28469: Changes for enabling data-tiering checks during cacheOnWrite (compaction codepaths) #5908
base: HBASE-28463
Are you sure you want to change the base?
Conversation
…t-cache (apache#5793) Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
…or Time Range Data Tiering (apache#5809) Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
…in prefetch functionality of HBase (apache#5808) Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
…pache#5829) Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
…ache#5856) Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
…rite (compaction codepaths) Change-Id: Ic8f11b328a911f23fc1f1c120a331b21847865bc
private boolean shouldCacheBlock() { | ||
DataTieringManager dataTieringManager = DataTieringManager.getInstance(); | ||
if (dataTieringManager != null) { | ||
return dataTieringManager.isHotData(timeRangeTracker, conf); |
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.
If we do not want to expose the isHotData call taking an argument of timeRangeTracker, we could wrap this metadata into some data holder (eg: define a new class DataTieringMetadata) so that we can abstract the time-range specific information. We will need to set the time-range in that metadata object and pass it to isHotData(), which will internally check the dataTieringType and perform the required checks
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.
We should move this shouldCacheBlock to the CacheConfig class.
💔 -1 overall
This message was automatically generated. |
private boolean shouldCacheBlock() { | ||
DataTieringManager dataTieringManager = DataTieringManager.getInstance(); | ||
if (dataTieringManager != null) { | ||
return dataTieringManager.isHotData(timeRangeTracker, conf); |
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.
We should move this shouldCacheBlock to the CacheConfig class.
@@ -57,6 +61,7 @@ | |||
import org.apache.yetus.audience.InterfaceAudience; | |||
import org.slf4j.Logger; | |||
import org.slf4j.LoggerFactory; | |||
import javax.xml.crypto.Data; |
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.
Unnecessary import?
c392345
to
7527a74
Compare
DO NOT SUBMIT.
Change-Id: Ic8f11b328a911f23fc1f1c120a331b21847865bc