-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Backport "HBASE-29029 Refactor BackupHFileCleaner + fix test (#6533)" to branch-3 #7101
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
Conversation
The TestBackupHFileCleaner test was broken, as it used a different API to register bulk loads than the API that is actually used to register bulk loads during backups. The test also incorrectly closed the FS of the HBaseTestingUtil, causing this test to block for about 5 minutes during shutdown. Both the test and BackupHFileCleaner itself were overly convoluted and are cleaned up. Methods in BackupSystemTable that could lead to incorrect use have been removed or deprecated (to fix their use case in HBASE-28715). Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
@DieterDP-ng the new test seems to reliably fail on branch-3. I wonder if there was some drift between the last CI run and when I merged master, so maybe it's broken there as well. Mind taking a look? I'll dig a bit on Monday. |
Also the case on master. Managed to track it so far to the buffered mutator hanging on close. Doesn't seem related to anything backup related though. The following test case also blocks:
|
Found the root cause, it's unrelated to the changes in the PR. But I guess the test case brings it to light. It's a deadlock situation:
|
@Apache9 This looks a change by you in HBASE-29394 |
Aha, the issue is already known and logged as HBASE-29397. |
The TestBackupHFileCleaner test was broken, as it used a different API to register bulk loads than the API that is actually used to register bulk loads during backups. The test also incorrectly closed the FS of the HBaseTestingUtil, causing this test to block for about 5 minutes during shutdown.
Both the test and BackupHFileCleaner itself were overly convoluted and are cleaned up. Methods in BackupSystemTable that could lead to incorrect use have been removed or deprecated (to fix their use case in HBASE-28715).