HBASE-29503: IntegrationTestBackupRestore is passing even if an exception occurs in the thread(s) it creates#7247
Merged
taklwu merged 1 commit intoapache:branch-2.6from Aug 26, 2025
Merged
Conversation
…tion occurs in the thread(s) it creates (apache#7203) (apache#7226) Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org>
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
taklwu
approved these changes
Aug 26, 2025
Contributor
|
we will also need the new patch for branch-2.6 #7248 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
nulland records any exceptions that occur. The main thread checks this instance variable when it joins the thread. If this instance variable is notnull, then the recorded exception is thrown.