Skip to content

HBASE-29292 Automatically reassign regions when WALs and ZK go missing - #6968

Closed
taklwu wants to merge 5881 commits into
apache:masterfrom
taklwu:HBASE-29292
Closed

HBASE-29292 Automatically reassign regions when WALs and ZK go missing#6968
taklwu wants to merge 5881 commits into
apache:masterfrom
taklwu:HBASE-29292

Conversation

@taklwu

@taklwutaklwu commented May 8, 2025

Copy link
Copy Markdown
Contributor

sorry for the long delay from the comments of #2114 that peter asked changes for HBASE-24282.

This patch addresses the previous comments by introducing a new feature flag, hbase.master.assign.regions.on.unknown.servers, to handle cases where an HBase cluster is restarted after WAL and ZooKeeper nodes have been removed. This is particularly useful when recreating an HBase cluster on cloud storage, where HDFS and ZooKeeper are always initialized fresh.

2005hithljand others added 30 commits July 31, 2024 09:12
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Nihal Jain <nihaljain@apache.org>
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Co-authored-by: Charles Connell <cconnell@hubspot.com>
…ache#6153)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Pankaj <pankajkumar@apache.org>
Signed-off-by: Istvan Toth <stoty@apache.org>
…pache#6146)
* Sync code as per irb 1.4.2
* Also provide option to try irb's new functionalities for colorize and autocomplete
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
(cherry picked from commit 6788ff4)
… from output tarball (apache#6157) (apache#6159)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit 98e7e1b)
…che#6162) (apache#6164)
Signed-off-by: Pankaj <pankajkumar@apache.org>
(cherry picked from commit 41dd87c)
…eTransition if procedure is initialised by next Active master (apache#6136)
Added masterActiveTime as fencing token for remote procedures
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Reviewed-by: Aman Poonia <aman.poonia.29@gmail.com>
…nalSslHandler (apache#6181)
Signed-off-by: Balazs Meszaros <meszibalu@apache.org>
…apache#6175)
Signed-off-by: Pankaj Kumar<pankajkumar@apache.org>
Reviewed-by: Vineet Kumar Maheshwari <vineet.4008@gmail.com>
…rable state for the given backup (apache#6088)
Co-authored-by: Ray Mattingly <rmattingly@hubspot.com>
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
…lete (apache#6089)
Co-authored-by: Ray Mattingly <rmattingly@hubspot.com>
Signed-off-by: Nihal Jain <nihaljain@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Reviewed-by: Vineet Kumar Maheshwari <vineet.4008@gmail.com>
…ks in a defined order (apache#6168)" to branch-2 (apache#6200)
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Co-authored-by: Charles Connell <cconnell@hubspot.com>
…fined order (apache#6168)
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Co-authored-by: Charles Connell <cconnell@hubspot.com>
…ks a connection to ZooKeeper (apache#6207)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Co-authored-by: rodenli <rodenli@tencent.com>
…procedure.jsp while Master is initializing (apache#6210)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
…apache#6187) (apache#6214)
Co-authored-by: WangXin <1458451310@qq.com>
Co-authored-by: wangxin <wangxin9702@gmail.com>
Signed-off-by: Nihal Jain <nihaljain@apache.org>
(cherry picked from commit b161ad5)
…#6205) (apache#6211)
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
(cherry picked from commit 35c7fc0)
… cache. (apache#6183) (apache#6198)
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
…ile unassigning a region (apache#6197) (apache#6217)
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
(cherry picked from commit 888e4dd)
Co-authored-by: Ray Mattingly <rmattingly@hubspot.com>
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Co-authored-by: Ray Mattingly <rmattingly@hubspot.com>
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
…pache#6218) (apache#5607)
- Also handle changes required for hadoop-2 assembly
Signed-off-by: Istvan Toth <stoty@apache.org>
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
(cherry picked from commit b6394b1)
…addendum: sync protobuf 3 version to hbase-thidparty)
…om persistence (apache#6182) (apache#6219)
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
…apache#6226) (apache#6238)
Co-authored-by: wangxin <wangxin9702@gmail.com>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit 3390195)
Co-authored-by: WangXin <1458451310@qq.com>
Apache9and others added 16 commits April 20, 2025 13:57
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
…StoreScanner (apache#6901)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit abc8b43)
…sisted (apache#6916) (apache#6910)
Signed-off-by: Andrew Purtell <apurtell@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Reid Chan <reidchan@apache.org>
Signed-off-by: gvprathyusha6 <70918688+gvprathyusha6@users.noreply.github.com>
… as input and heap ByteBuffer as output, or vice versa (apache#6806)
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Signed-off-by: Ray Mattingly <rmattingly@apache.org>
The HBase backup mechanism keeps track of which HFiles
were bulk loaded, so they can be included in incremental
backups.
Before this ticket, these bulk load records were only
deleted when an incremental backup is created. This
commit adds 2 more locations:
1) after a full backup. Since a full backup already
captures all data, this meant that unnecessary HFiles
were being included in the next incremental backup.
2) after a table delete/truncate/CF-deletion. Previously,
if an HFile was loaded before a table was cleared, the next
incremental backup would effectively still include the
HFile. This lead to incorrect data being restored.
This commit also completely refactors & simplifies the
test for this functionality.
Co-authored-by: DieterDP <90392398+DieterDP-ng@users.noreply.github.com>
)
Co-authored-by: Hernan Gelaf-Romer <hgelafromer@hubspot.com>
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Signed-off-by: Ray Mattingly <rmattingly@apache.org>
…t ClassLoader (apache#6918)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit bd30367)
apache#6857)
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Co-authored-by: Charles Connell <cconnell@hubspot.com>
…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>
…ributes field (apache#6823)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Pankaj <pankajkumar@apache.org>
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
…operties (apache#6948)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org>
(cherry picked from commit ae40069)
…Changed behavior (apache#6900)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit 99bd5b5)
… support (apache#6953) (apache#6957)
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Co-authored-by: Ray Mattingly <rmattingly@hubspot.com>
apache#6924)
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
(cherry picked from commit 5dafa9e)
Co-authored-by: Josh Elser <elserj@apache.org>
Co-authored-by: Sergey Soldatov <ssa@apache.org>
@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeLogfileComment
+0 🆗reexec0m 45sDocker 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.
_ branch-2 Compile Tests _
+1 💚mvninstall3m 21sbranch-2 passed
+1 💚compile3m 7sbranch-2 passed
+1 💚checkstyle0m 40sbranch-2 passed
+1 💚spotbugs1m 39sbranch-2 passed
+1 💚spotless0m 50sbranch has no errors when running spotless:check.
_ Patch Compile Tests _
+1 💚mvninstall3m 15sthe patch passed
+1 💚compile2m 59sthe patch passed
+1 💚javac2m 59sthe patch passed
+1 💚blanks0m 0sThe patch has no blanks issues.
+1 💚checkstyle0m 35sthe patch passed
+1 💚spotbugs1m 42sthe patch passed
+1 💚hadoopcheck17m 4sPatch does not cause any errors with Hadoop 2.10.2 or 3.3.6 3.4.0.
+1 💚spotless0m 48spatch has no errors when running spotless:check.
_ Other Tests _
+1 💚asflicense0m 11sThe patch does not generate ASF License warnings.
38m 46s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6968/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#6968
Optional Testsdupname asflicense javac spotbugs checkstyle codespell detsecrets compile hadoopcheck hbaseanti spotless
unameLinux 8d4967b8cdef 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 revisionbranch-2 / 028d0f2
Default JavaEclipse Adoptium-11.0.23+9
Max. process+thread count79 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6968/2/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 48sDocker mode activated.
-0 ⚠️yetus0m 5sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ branch-2 Compile Tests _
+1 💚mvninstall2m 26sbranch-2 passed
+1 💚compile0m 41sbranch-2 passed
+1 💚javadoc0m 23sbranch-2 passed
+1 💚shadedjars5m 17sbranch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+1 💚mvninstall2m 28sthe patch passed
+1 💚compile0m 41sthe patch passed
+1 💚javac0m 41sthe patch passed
+1 💚javadoc0m 24sthe patch passed
+1 💚shadedjars5m 16spatch has no errors when building our shaded downstream artifacts.
_ Other Tests _
+1 💚unit214m 13shbase-server in the patch passed.
236m 49s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6968/2/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile
GITHUB PR#6968
Optional Testsjavac javadoc unit compile shadedjars
unameLinux d985ad25b7d8 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 revisionbranch-2 / 028d0f2
Default JavaTemurin-1.8.0_412-b08
Test Resultshttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6968/2/testReport/
Max. process+thread count4016 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6968/2/console
versionsgit=2.34.1 maven=3.9.8
Powered byApache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@taklwu
taklwu changed the base branch from branch-2 to masterMay 9, 2025 18:08
@taklwutaklwu closed this May 9, 2025
@taklwu

taklwu commented May 9, 2025

Copy link
Copy Markdown
ContributorAuthor

let me reopen a new one against master #6981

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.

20 participants

@taklwu@Apache-HBase@2005hithlj@Apache9@ndimiduk@anmolnar@NihalJain@jinhyukify@Umeshkumar9414@srinireddy2020@rmdmattingly@pankaj72981@guluo2016@jhungund@ragarkar@stoty@hgromer@eab148@eubnara@charlesconnell