Skip to content
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

Open
wants to merge 6 commits into
base: HBASE-28463
Choose a base branch
from

Conversation

jhungund
Copy link

DO NOT SUBMIT.

Change-Id: Ic8f11b328a911f23fc1f1c120a331b21847865bc

vinayakphegde and others added 6 commits April 25, 2024 11:01
…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);
Copy link
Author

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

Copy link
Contributor

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.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 38s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ HBASE-28463 Compile Tests _
+1 💚 mvninstall 4m 2s HBASE-28463 passed
+1 💚 compile 3m 4s HBASE-28463 passed
+1 💚 checkstyle 0m 46s HBASE-28463 passed
+1 💚 spotless 0m 53s branch has no errors when running spotless:check.
+1 💚 spotbugs 2m 1s HBASE-28463 passed
_ Patch Compile Tests _
+1 💚 mvninstall 3m 43s the patch passed
+1 💚 compile 3m 2s the patch passed
+1 💚 javac 3m 2s the patch passed
-0 ⚠️ checkstyle 0m 40s hbase-server: The patch generated 3 new + 2 unchanged - 0 fixed = 5 total (was 2)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 hadoopcheck 6m 36s Patch does not cause any errors with Hadoop 3.3.6.
-1 ❌ spotless 0m 48s patch has 56 errors when running spotless:check, run spotless:apply to fix.
+1 💚 spotbugs 2m 8s the patch passed
_ Other Tests _
+1 💚 asflicense 0m 12s The patch does not generate ASF License warnings.
36m 33s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5908/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #5908
JIRA Issue HBASE-28469
Optional Tests dupname asflicense javac spotbugs hadoopcheck hbaseanti spotless checkstyle compile
uname Linux 47020fa6a854 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision HBASE-28463 / 4dee532
Default Java Eclipse Adoptium-11.0.17+8
checkstyle https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5908/1/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt
spotless https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5908/1/artifact/yetus-general-check/output/patch-spotless.txt
Max. process+thread count 80 (vs. ulimit of 30000)
modules C: hbase-server U: hbase-server
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-5908/1/console
versions git=2.34.1 maven=3.8.6 spotbugs=4.7.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

private boolean shouldCacheBlock() {
DataTieringManager dataTieringManager = DataTieringManager.getInstance();
if (dataTieringManager != null) {
return dataTieringManager.isHotData(timeRangeTracker, conf);
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary import?

@wchevreuil wchevreuil force-pushed the HBASE-28463 branch 2 times, most recently from c392345 to 7527a74 Compare May 21, 2024 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants