Skip to content

HBASE-29503: IntegrationTestBackupRestore is passing even if an exception occurs in the thread(s) it creates#7227

Merged
taklwu merged 1 commit intoapache:branch-3from
kgeisz:branch-3
Aug 19, 2025
Merged

HBASE-29503: IntegrationTestBackupRestore is passing even if an exception occurs in the thread(s) it creates#7227
taklwu merged 1 commit intoapache:branch-3from
kgeisz:branch-3

Conversation

@kgeisz
Copy link
Copy Markdown
Contributor

@kgeisz kgeisz commented Aug 14, 2025

https://issues.apache.org/jira/browse/HBASE-29503

This is a cherry-pick of PR #7203, which was merged into master as d80bbef.

Currently, IntegrationTestBackupRestore is creating a separate thread to run the full/incremental backup and restore processes. With this implementation, if an exception occurs in this thread, then an error will be logged but the integration test will still pass. I initially noticed this while working on HBASE-29411. I also observed this behavior when I did not have changes from PR #7151 in my branch.

This pull request turns the backup/restore thread into an actual class that implements Runnable. Within this class, there is an instance variable that starts as null and records any exceptions that occur. The main thread checks this instance variable when it joins the thread. If this instance variable is not null, then the recorded exception is thrown.

…tion occurs in the thread(s) it creates (apache#7203)

Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org>
@Apache-HBase
Copy link
Copy Markdown

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 35s Docker mode activated.
-0 ⚠️ yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ branch-3 Compile Tests _
+1 💚 mvninstall 4m 4s branch-3 passed
+1 💚 compile 0m 23s branch-3 passed
+1 💚 javadoc 0m 15s branch-3 passed
+1 💚 shadedjars 6m 38s branch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 3m 41s the patch passed
+1 💚 compile 0m 22s the patch passed
+1 💚 javac 0m 22s the patch passed
+1 💚 javadoc 0m 13s the patch passed
+1 💚 shadedjars 6m 28s patch has no errors when building our shaded downstream artifacts.
_ Other Tests _
+1 💚 unit 0m 45s hbase-it in the patch passed.
24m 32s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7227/1/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR #7227
Optional Tests javac javadoc unit compile shadedjars
uname Linux f0b295d1f6ce 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 branch-3 / 172cbca
Default Java Eclipse Adoptium-17.0.11+9
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7227/1/testReport/
Max. process+thread count 611 (vs. ulimit of 30000)
modules C: hbase-it U: hbase-it
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7227/1/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.

@Apache-HBase
Copy link
Copy Markdown

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 35s 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.
_ branch-3 Compile Tests _
+1 💚 mvninstall 4m 10s branch-3 passed
+1 💚 compile 0m 47s branch-3 passed
+1 💚 checkstyle 0m 14s branch-3 passed
+1 💚 spotbugs 0m 33s branch-3 passed
+1 💚 spotless 1m 3s branch has no errors when running spotless:check.
_ Patch Compile Tests _
+1 💚 mvninstall 3m 51s the patch passed
+1 💚 compile 0m 39s the patch passed
+1 💚 javac 0m 39s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 0m 14s the patch passed
+1 💚 spotbugs 0m 38s the patch passed
+1 💚 hadoopcheck 13m 29s Patch does not cause any errors with Hadoop 3.3.6 3.4.0.
+1 💚 spotless 0m 47s patch has no errors when running spotless:check.
_ Other Tests _
+1 💚 asflicense 0m 10s The patch does not generate ASF License warnings.
35m 47s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7227/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #7227
Optional Tests dupname asflicense javac spotbugs checkstyle codespell detsecrets compile hadoopcheck hbaseanti spotless
uname Linux ca80faa875cb 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 branch-3 / 172cbca
Default Java Eclipse Adoptium-17.0.11+9
Max. process+thread count 83 (vs. ulimit of 30000)
modules C: hbase-it U: hbase-it
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7227/1/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.

@taklwu taklwu merged commit cc306b3 into apache:branch-3 Aug 19, 2025
1 check passed
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.

3 participants