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-29133: Implement "pitr" Command for Point-in-Time Restore #6717

Open
wants to merge 1 commit into
base: HBASE-28957
Choose a base branch
from

Conversation

vinayakphegde
Copy link
Contributor

This PR introduces the pitr command to restore tables from the most recent backup before --to-datetime and replay WAL logs for changes made after the last backup.

Command Usage:

hbase pitr <backup_path> 
    [-t <table_name[,table_name]>] 
    [-s <backup_set_name>] 
    [-q <name>] 
    [-c] 
    [-m <target_tables>] 
    [-o] 
    [--to-datetime <end_time>]

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 38s 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.
+0 🆗 shelldocs 0m 0s Shelldocs 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.
_ HBASE-28957 Compile Tests _
+0 🆗 mvndep 0m 15s Maven dependency ordering for branch
+1 💚 mvninstall 5m 3s HBASE-28957 passed
+1 💚 compile 12m 56s HBASE-28957 passed
+1 💚 checkstyle 1m 51s HBASE-28957 passed
+1 💚 spotbugs 11m 43s HBASE-28957 passed
+1 💚 spotless 0m 52s branch has no errors when running spotless:check.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 10s Maven dependency ordering for patch
+1 💚 mvninstall 3m 58s the patch passed
+1 💚 compile 12m 28s the patch passed
-0 ⚠️ javac 12m 28s /results-compile-javac-root.txt root generated 1 new + 1281 unchanged - 0 fixed = 1282 total (was 1281)
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 1m 34s /buildtool-patch-checkstyle-root.txt The patch fails to run checkstyle in root
+1 💚 shellcheck 0m 1s No new issues.
+1 💚 spotbugs 12m 5s the patch passed
+1 💚 hadoopcheck 15m 53s Patch does not cause any errors with Hadoop 3.3.6 3.4.0.
+1 💚 spotless 1m 8s patch has no errors when running spotless:check.
_ Other Tests _
+1 💚 asflicense 0m 25s The patch does not generate ASF License warnings.
91m 20s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6717/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #6717
JIRA Issue HBASE-29133
Optional Tests dupname asflicense codespell detsecrets shellcheck shelldocs spotless javac spotbugs checkstyle compile hadoopcheck hbaseanti
uname Linux 35ff8a72c6c1 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 HBASE-28957 / 606ff9e
Default Java Eclipse Adoptium-17.0.11+9
Max. process+thread count 188 (vs. ulimit of 30000)
modules C: hbase-backup . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6717/1/console
versions git=2.34.1 maven=3.9.8 spotbugs=4.7.3 shellcheck=0.8.0
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 29s 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 _
_ HBASE-28957 Compile Tests _
+0 🆗 mvndep 0m 11s Maven dependency ordering for branch
+1 💚 mvninstall 3m 10s HBASE-28957 passed
+1 💚 compile 2m 8s HBASE-28957 passed
+1 💚 javadoc 2m 7s HBASE-28957 passed
+1 💚 shadedjars 5m 49s branch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 11s Maven dependency ordering for patch
+1 💚 mvninstall 3m 2s the patch passed
+1 💚 compile 2m 13s the patch passed
+1 💚 javac 2m 13s the patch passed
+1 💚 javadoc 2m 27s the patch passed
+1 💚 shadedjars 7m 7s patch has no errors when building our shaded downstream artifacts.
_ Other Tests _
-1 ❌ unit 277m 49s /patch-unit-root.txt root in the patch failed.
312m 10s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6717/1/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR #6717
JIRA Issue HBASE-29133
Optional Tests javac javadoc unit compile shadedjars
uname Linux 3b9e992d0499 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 HBASE-28957 / 606ff9e
Default Java Eclipse Adoptium-17.0.11+9
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6717/1/testReport/
Max. process+thread count 6055 (vs. ulimit of 30000)
modules C: hbase-backup . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6717/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.

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.

2 participants