-
Notifications
You must be signed in to change notification settings - Fork 34
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
Restore improvement: compaction #4060
Conversation
6730919
to
dec55d5
Compare
dec55d5
to
85be062
Compare
@karol-kokoszka This PR is ready for review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update docs
- one question related to the channel buffer.
This commit add TestRestoreTablesPreparationIntegration. Its purpose is to check setup changes performed by SM during restore data stage. Right now it validates tombstone_gc mode and compaction, but it can be easily extended in the future. Test scenario: - Run restore - hang on restore data stage - Validate setup - Pause restore - Validate setup - Resume restore - hang on restore data stage - Validate setup - Resume restore - wait for success - Validate setup - Validate restore success
…tegration This check isn't implemented correctly, as starting from 27b1d23, file names are not stored in the SM DB. It means that 'sfs' was always empty. Nevertheless, the partial upload check could still fail when 's3f' was empty as well. This test does not implement any breakpoint to ensure that backup is paused after transferring at least a single file (it just waits for the transfers to start). That's why this check was flaky and didn't do anything meaningful, so it is removed from the test.
f684643
to
63f1787
Compare
@karol-kokoszka I addressed the comments, could you take a look again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Please squash and merge.
This PR adds new boolean restore flag
--allow-compaction
(false by default).When it's set to false, SM disables auto compactions on restored tables for the time of the restore and enables them back when its done.
Fixes #3953