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-28836 Parallize the file archival to improve the split times #6483

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

mnpoonia
Copy link
Contributor

@mnpoonia mnpoonia commented Nov 20, 2024

Jira: HBASE-28836

@mnpoonia
Copy link
Contributor Author

@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.

Copy link
Contributor

@Umeshkumar9414 Umeshkumar9414 left a comment

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
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
Contributor Author

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

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 29s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
_ master Compile Tests _
+1 💚 mvninstall 3m 18s master passed
+1 💚 compile 3m 10s master passed
+1 💚 checkstyle 0m 37s master passed
+1 💚 spotbugs 1m 35s master passed
+1 💚 spotless 0m 45s branch has no errors when running spotless:check.
_ Patch Compile Tests _
+1 💚 mvninstall 3m 0s the patch passed
+1 💚 compile 3m 14s the patch passed
+1 💚 javac 3m 14s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 0m 36s the patch passed
+1 💚 spotbugs 1m 38s the patch passed
+1 💚 hadoopcheck 11m 37s Patch does not cause any errors with Hadoop 3.3.6 3.4.0.
+1 💚 spotless 0m 43s patch has no errors when running spotless:check.
_ Other Tests _
+1 💚 asflicense 0m 11s The patch does not generate ASF License warnings.
38m 15s
Subsystem Report/Notes
Docker ClientAPI=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 Tests dupname asflicense javac spotbugs checkstyle codespell detsecrets compile hadoopcheck hbaseanti spotless
uname Linux 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / 925ff4a
Default Java Eclipse Adoptium-17.0.11+9
Max. process+thread count 84 (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-6483/3/console
versions git=2.34.1 maven=3.9.8 spotbugs=4.7.3
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 35s Docker mode activated.
-0 ⚠️ yetus 0m 2s Unprocessed 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 💚 mvninstall 3m 26s master passed
+1 💚 compile 0m 53s master passed
+1 💚 javadoc 0m 27s master passed
+1 💚 shadedjars 5m 36s branch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 2m 54s the patch passed
+1 💚 compile 0m 58s the patch passed
+1 💚 javac 0m 58s the patch passed
+1 💚 javadoc 0m 28s the patch passed
+1 💚 shadedjars 5m 50s patch has no errors when building our shaded downstream artifacts.
_ Other Tests _
-1 ❌ unit 21m 39s /patch-unit-hbase-server.txt hbase-server in the patch failed.
44m 29s
Subsystem Report/Notes
Docker ClientAPI=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 Tests javac javadoc unit compile shadedjars
uname Linux 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 tool maven
Personality dev-support/hbase-personality.sh
git revision master / 925ff4a
Default Java Eclipse Adoptium-17.0.11+9
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6483/3/testReport/
Max. process+thread count 2201 (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-6483/3/console
versions git=2.34.1 maven=3.9.8
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@virajjasani virajjasani left a comment

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

virajjasani commented Dec 3, 2024

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

Copy link
Contributor

@virajjasani virajjasani left a comment

Choose a reason for hiding this comment

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

+1

@virajjasani
Copy link
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
Contributor Author

mnpoonia commented Dec 9, 2024

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

@virajjasani
Copy link
Contributor

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

@virajjasani virajjasani merged commit 262c5bb into apache:master Dec 9, 2024
1 check failed
virajjasani pushed a commit that referenced this pull request Dec 9, 2024
…6483)

Signed-off-by: Viraj Jasani <[email protected]>
Signed-off-by: David Manning <[email protected]>
Signed-off-by: Umesh Kumar <[email protected]>
virajjasani pushed a commit that referenced this pull request Dec 9, 2024
…6483)

Signed-off-by: Viraj Jasani <[email protected]>
Signed-off-by: David Manning <[email protected]>
Signed-off-by: Umesh Kumar <[email protected]>
virajjasani pushed a commit that referenced this pull request Dec 9, 2024
…6483)

Signed-off-by: Viraj Jasani <[email protected]>
Signed-off-by: David Manning <[email protected]>
Signed-off-by: Umesh Kumar <[email protected]>
virajjasani pushed a commit that referenced this pull request Dec 9, 2024
…6483)

Signed-off-by: Viraj Jasani <[email protected]>
Signed-off-by: David Manning <[email protected]>
Signed-off-by: Umesh Kumar <[email protected]>
@mnpoonia
Copy link
Contributor Author

Thank you @virajjasani

@virajjasani
Copy link
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 <[email protected]>
Signed-off-by: David Manning <[email protected]>
Signed-off-by: Umesh Kumar <[email protected]>
Sign up for free to 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