Skip to content

HBASE-28836 Parallize the file archival to improve the split times - #6483

Merged
virajjasani merged 1 commit into
apache:masterfrom
mnpoonia:HBASE-28836
Dec 9, 2024
Merged

HBASE-28836 Parallize the file archival to improve the split times #6483
virajjasani merged 1 commit into
apache:masterfrom
mnpoonia:HBASE-28836

Conversation

@mnpoonia

@mnpooniamnpoonia commented Nov 20, 2024

Copy link
Copy Markdown
Contributor

@mnpoonia

Copy link
Copy Markdown
ContributorAuthor

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Umeshkumar9414Umeshkumar9414 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@virajjasani
virajjasani self-requested a review November 21, 2024 17:07
boolean fileCleaned = fileFutureEntry.getValue().get();
if (!fileCleaned) {
LOG.warn("Couldn't archive %s into backup directory: %s"
.formatted(fileFutureEntry.getKey(), baseArchiveDir));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't know all the jdk requirements, but looks like .formatted was added only in JDK 15. If this is intended for backport, there may be earlier JDK versions to support.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Thanks for pointing to this. Yes i was using jdk 17 so missed this.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeLogfileComment
+0 🆗reexec0m 29sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗codespell0m 0scodespell was not available.
+0 🆗detsecrets0m 0sdetect-secrets was not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
_ master Compile Tests _
+1 💚mvninstall3m 18smaster passed
+1 💚compile3m 10smaster passed
+1 💚checkstyle0m 37smaster passed
+1 💚spotbugs1m 35smaster passed
+1 💚spotless0m 45sbranch has no errors when running spotless:check.
_ Patch Compile Tests _
+1 💚mvninstall3m 0sthe patch passed
+1 💚compile3m 14sthe patch passed
+1 💚javac3m 14sthe patch passed
+1 💚blanks0m 0sThe patch has no blanks issues.
+1 💚checkstyle0m 36sthe patch passed
+1 💚spotbugs1m 38sthe patch passed
+1 💚hadoopcheck11m 37sPatch does not cause any errors with Hadoop 3.3.6 3.4.0.
+1 💚spotless0m 43spatch has no errors when running spotless:check.
_ Other Tests _
+1 💚asflicense0m 11sThe patch does not generate ASF License warnings.
38m 15s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6483/3/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#6483
Optional Testsdupname asflicense javac spotbugs checkstyle codespell detsecrets compile hadoopcheck hbaseanti spotless
unameLinux c2fb7253f3e4 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 toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 925ff4a
Default JavaEclipse Adoptium-17.0.11+9
Max. process+thread count84 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6483/3/console
versionsgit=2.34.1 maven=3.9.8 spotbugs=4.7.3
Powered byApache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeLogfileComment
+0 🆗reexec0m 35sDocker mode activated.
-0 ⚠️yetus0m 2sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+1 💚mvninstall3m 26smaster passed
+1 💚compile0m 53smaster passed
+1 💚javadoc0m 27smaster passed
+1 💚shadedjars5m 36sbranch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+1 💚mvninstall2m 54sthe patch passed
+1 💚compile0m 58sthe patch passed
+1 💚javac0m 58sthe patch passed
+1 💚javadoc0m 28sthe patch passed
+1 💚shadedjars5m 50spatch has no errors when building our shaded downstream artifacts.
_ Other Tests _
-1 ❌unit21m 39s/patch-unit-hbase-server.txthbase-server in the patch failed.
44m 29s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6483/3/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR#6483
Optional Testsjavac javadoc unit compile shadedjars
unameLinux 045cbd2cb87c 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 toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 925ff4a
Default JavaEclipse Adoptium-17.0.11+9
Test Resultshttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6483/3/testReport/
Max. process+thread count2201 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6483/3/console
versionsgit=2.34.1 maven=3.9.8
Powered byApache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@virajjasanivirajjasani left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks like until this change, only MasterFileSystem#checkTempDir and DeleteTableProcedure#deleteFromFs were using parallel archival using thread pool of size defined by hbase.hfilearchiver.thread.pool.max.
With this change, we will use parallel archival for all use cases.

@virajjasani

virajjasani commented Dec 3, 2024

Copy link
Copy Markdown
Contributor

@Apache9@apurtell any reviews from your side before we merge it?
Keeping this open for at least 24 hr.

@virajjasanivirajjasani left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

@virajjasani

Copy link
Copy Markdown
Contributor

@mnpoonia could you also create branch-2 backport PR so that after clean build results, the changes can be ported to all active branches?

@mnpoonia

Copy link
Copy Markdown
ContributorAuthor

@virajjasani Sure. It can be applied to all active branches.

@virajjasani

Copy link
Copy Markdown
Contributor

Sounds good, let me verify on branch-2 and then will merge it today.

@virajjasani
virajjasani merged commit 262c5bb into apache:masterDec 9, 2024
virajjasani pushed a commit that referenced this pull request Dec 9, 2024
…6483)
Signed-off-by: Viraj Jasani <vjasani@apache.org>
Signed-off-by: David Manning <david.manning@salesforce.com>
Signed-off-by: Umesh Kumar <9414umeshkumar@gmail.com>
virajjasani pushed a commit that referenced this pull request Dec 9, 2024
…6483)
Signed-off-by: Viraj Jasani <vjasani@apache.org>
Signed-off-by: David Manning <david.manning@salesforce.com>
Signed-off-by: Umesh Kumar <9414umeshkumar@gmail.com>
virajjasani pushed a commit that referenced this pull request Dec 9, 2024
…6483)
Signed-off-by: Viraj Jasani <vjasani@apache.org>
Signed-off-by: David Manning <david.manning@salesforce.com>
Signed-off-by: Umesh Kumar <9414umeshkumar@gmail.com>
virajjasani pushed a commit that referenced this pull request Dec 9, 2024
…6483)
Signed-off-by: Viraj Jasani <vjasani@apache.org>
Signed-off-by: David Manning <david.manning@salesforce.com>
Signed-off-by: Umesh Kumar <9414umeshkumar@gmail.com>
@mnpoonia

Copy link
Copy Markdown
ContributorAuthor

Thank you @virajjasani

@virajjasani

Copy link
Copy Markdown
Contributor

Thank you @mnpoonia for this nice improvement!

gvprathyusha6 pushed a commit to gvprathyusha6/hbase that referenced this pull request Dec 19, 2024
…pache#6483)
Signed-off-by: Viraj Jasani <vjasani@apache.org>
Signed-off-by: David Manning <david.manning@salesforce.com>
Signed-off-by: Umesh Kumar <9414umeshkumar@gmail.com>
virajjasani added a commit that referenced this pull request Jan 6, 2025
virajjasani added a commit that referenced this pull request Jan 6, 2025
virajjasani added a commit that referenced this pull request Jan 6, 2025
virajjasani added a commit that referenced this pull request Jan 6, 2025
virajjasani added a commit that referenced this pull request Jan 6, 2025
ragarkar pushed a commit to ragarkar/hbase that referenced this pull request Jan 13, 2025
mokai87 pushed a commit to mokai87/hbase that referenced this pull request Aug 7, 2025
…pache#6483)
Signed-off-by: Viraj Jasani <vjasani@apache.org>
Signed-off-by: David Manning <david.manning@salesforce.com>
Signed-off-by: Umesh Kumar <9414umeshkumar@gmail.com>
mokai87 pushed a commit to mokai87/hbase that referenced this pull request Aug 7, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@mnpoonia@Apache-HBase@virajjasani@Umeshkumar9414@d-c-manning