Skip to content

HBASE-29207 The backup system table should be considered a system table - #6842

Merged
rmdmattingly merged 2 commits into
apache:masterfrom
HubSpot:HBASE-29207
Apr 23, 2025
Merged

HBASE-29207 The backup system table should be considered a system table#6842
rmdmattingly merged 2 commits into
apache:masterfrom
HubSpot:HBASE-29207

Conversation

@rmdmattingly

@rmdmattinglyrmdmattingly commented Mar 21, 2025

Copy link
Copy Markdown
Contributor

Some might argue that this table should be named system:backup instead of backup:system, but c'est la vie

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

Comment on lines +304 to +312
} else if (Bytes.equals(NamespaceDescriptor.BACKUP_NAMESPACE_NAME, namespace)) {
this.namespace = NamespaceDescriptor.BACKUP_NAMESPACE_NAME;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m not sure, to be honest. If we were back in time I’d recommend not supporting that feature at all. Do you have any ideas?

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@rmdmattingly

Copy link
Copy Markdown
ContributorAuthor

Wow, I see now why this wasn’t listed as a system table initially. We take snapshots of the backups table periodically, and you cannot take snapshots of system tables. Test failures caught this disconnect of intentions.

I’ll think a bit about this, but I wonder if we should make an exception for allowing backup system table snapshots.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@ndimiduk

Copy link
Copy Markdown
Member

you cannot take snapshots of system tables

Wait you can't take a snapshot of meta? I feel like this is something I've done before. Maybe I was just taking a "dump"/export...

@rmdmattingly

Copy link
Copy Markdown
ContributorAuthor

According to the precondition tripped by those tests, one cannot

@ndimidukndimiduk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some might argue that this table should be named system:backup instead of backup:system, but c'est la vie

Yes this is quite unfortunate.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeLogfileComment
+0 🆗reexec0m 32sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗codespell0m 0scodespell was not available.
+0 🆗detsecrets0m 0sdetect-secrets was not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
_ master Compile Tests _
+0 🆗mvndep0m 11sMaven dependency ordering for branch
+1 💚mvninstall4m 30smaster passed
+1 💚compile2m 36smaster passed
+1 💚checkstyle0m 48smaster passed
+1 💚spotbugs2m 1smaster passed
+1 💚spotless0m 52sbranch has no errors when running spotless:check.
-0 ⚠️patch1m 11sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 11sMaven dependency ordering for patch
+1 💚mvninstall4m 1sthe patch passed
+1 💚compile2m 27sthe patch passed
+1 💚javac2m 27sthe patch passed
+1 💚blanks0m 0sThe patch has no blanks issues.
+1 💚checkstyle0m 53sthe patch passed
+1 💚spotbugs2m 35sthe patch passed
+1 💚hadoopcheck16m 7sPatch does not cause any errors with Hadoop 3.3.6 3.4.0.
+1 💚spotless1m 14spatch has no errors when running spotless:check.
_ Other Tests _
+1 💚asflicense0m 35sThe patch does not generate ASF License warnings.
50m 20s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6842/4/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#6842
Optional Testsdupname asflicense javac spotbugs checkstyle codespell detsecrets compile hadoopcheck hbaseanti spotless
unameLinux eb57bb751544 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 toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / d4b438e
Default JavaEclipse Adoptium-17.0.11+9
Max. process+thread count83 (vs. ulimit of 30000)
modulesC: hbase-common hbase-client hbase-backup U: .
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6842/4/console
versionsgit=2.34.1 maven=3.9.8 spotbugs=4.7.3
Powered byApache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeLogfileComment
+0 🆗reexec0m 44sDocker mode activated.
-0 ⚠️yetus0m 4sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 25sMaven dependency ordering for branch
+1 💚mvninstall8m 27smaster passed
+1 💚compile3m 12smaster passed
+1 💚javadoc2m 50smaster passed
+1 💚shadedjars13m 18sbranch has no errors when building our shaded downstream artifacts.
-0 ⚠️patch14m 37sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 39sMaven dependency ordering for patch
+1 💚mvninstall8m 25sthe patch passed
+1 💚compile3m 4sthe patch passed
+1 💚javac3m 4sthe patch passed
+1 💚javadoc2m 40sthe patch passed
+1 💚shadedjars12m 57spatch has no errors when building our shaded downstream artifacts.
_ Other Tests _
+1 💚unit7m 5shbase-common in the patch passed.
+1 💚unit5m 14shbase-client in the patch passed.
-1 ❌unit32m 40s/patch-unit-hbase-backup.txthbase-backup in the patch failed.
105m 0s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6842/4/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR#6842
Optional Testsjavac javadoc unit compile shadedjars
unameLinux 97560db65fee 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 toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / d4b438e
Default JavaEclipse Adoptium-17.0.11+9
Test Resultshttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6842/4/testReport/
Max. process+thread count3539 (vs. ulimit of 30000)
modulesC: hbase-common hbase-client hbase-backup U: .
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6842/4/console
versionsgit=2.34.1 maven=3.9.8
Powered byApache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@rmdmattingly
rmdmattingly merged commit dcb406f into apache:masterApr 23, 2025
@rmdmattingly
rmdmattingly deleted the HBASE-29207 branch April 23, 2025 19:45
rmdmattingly added a commit that referenced this pull request Apr 23, 2025
…le (#6842)
Co-authored-by: Ray Mattingly <rmattingly@hubspot.com>
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Signed-off-by: Nihal Jain <nihaljain@apache.org>
rmdmattingly added a commit that referenced this pull request Apr 23, 2025
…le (#6842)
Co-authored-by: Ray Mattingly <rmattingly@hubspot.com>
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Signed-off-by: Nihal Jain <nihaljain@apache.org>
rmdmattingly added a commit that referenced this pull request Apr 23, 2025
…le (#6842)
Co-authored-by: Ray Mattingly <rmattingly@hubspot.com>
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Signed-off-by: Nihal Jain <nihaljain@apache.org>
rmdmattingly added a commit that referenced this pull request Apr 25, 2025
…le (#6842) (#6928)
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Signed-off-by: Nihal Jain <nihaljain@apache.org>
Co-authored-by: Ray Mattingly <rmattingly@hubspot.com>
rmdmattingly added a commit that referenced this pull request Apr 25, 2025
…le (#6842) (#6929)
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Signed-off-by: Nihal Jain <nihaljain@apache.org>
Co-authored-by: Ray Mattingly <rmattingly@hubspot.com>
rmdmattingly added a commit that referenced this pull request Apr 25, 2025
…le (#6842) (#6930)
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Signed-off-by: Nihal Jain <nihaljain@apache.org>
Co-authored-by: Ray Mattingly <rmattingly@hubspot.com>
mokai87 pushed a commit to mokai87/hbase that referenced this pull request Aug 7, 2025
…le (apache#6842) (apache#6929)
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Signed-off-by: Nihal Jain <nihaljain@apache.org>
Co-authored-by: Ray Mattingly <rmattingly@hubspot.com>
Sign up for freeto 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.

5 participants

@rmdmattingly@Apache-HBase@ndimiduk@NihalJain@Kota-SH