Skip to content

HBASE-25161 [hbase-meta-repair] Add tool for repairing metadata. - #77

Open
VictorZeng wants to merge 9 commits into
apache:masterfrom
VictorZeng:HBASE-25161
Open

HBASE-25161 [hbase-meta-repair] Add tool for repairing metadata.#77
VictorZeng wants to merge 9 commits into
apache:masterfrom
VictorZeng:HBASE-25161

Conversation

@VictorZeng

Copy link
Copy Markdown

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 15sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗markdownlint0m 0smarkdownlint was not available.
+0 🆗spotbugs0m 0sspotbugs executables are not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall0m 45smaster passed
+1 💚compile0m 9smaster passed
+1 💚checkstyle0m 6smaster passed
+1 💚javadoc0m 7smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 7sMaven dependency ordering for patch
+1 💚mvninstall0m 24sthe patch passed
+1 💚compile0m 17sthe patch passed
+1 💚javac0m 17sthe patch passed
-1 ❌checkstyle0m 5shbase-meta-repair: The patch generated 193 new + 0 unchanged - 0 fixed = 193 total (was 0)
-1 ❌checkstyle0m 6sroot: The patch generated 193 new + 0 unchanged - 0 fixed = 193 total (was 0)
-1 ❌whitespace0m 0sThe patch has 10 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 💚xml0m 1sThe patch has no ill-formed XML file.
+1 💚javadoc0m 10sthe patch passed
_ Other Tests _
-1 ❌unit10m 55shbase-meta-repair in the patch failed.
-1 ❌unit18m 30sroot in the patch failed.
-1 ❌asflicense0m 9sThe patch generated 1 ASF License warnings.
33m 19s
ReasonTests
Failed junit testshbase.repair.TestMetaRepair
hbase.TestRegionsMerger
hbase.repair.TestMetaRepair
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/Dockerfile
GITHUB PR#77
Optional Testsdupname asflicense markdownlint javac javadoc unit xml compile spotbugs findbugs checkstyle
unameLinux 2926be98c042 5.4.0-1025-aws #25~18.04.1-Ubuntu SMP Fri Sep 11 12:03:04 UTC 2020 x86_64 GNU/Linux
Build toolmaven
git revisionmaster / 5cdc0e2
Default JavaOracle Corporation-1.8.0_265-b01
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/diff-checkstyle-hbase-meta-repair.txt
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/diff-checkstyle-root.txt
whitespacehttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/whitespace-eol.txt
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-unit-hbase-meta-repair.txt
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/testReport/
asflicensehttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-asflicense-problems.txt
Max. process+thread count941 (vs. ulimit of 1000)
modulesC: hbase-meta-repair . U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/console
versionsgit=2.20.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 36sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗markdownlint0m 0smarkdownlint was not available.
+0 🆗spotbugs0m 0sspotbugs executables are not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall0m 41smaster passed
+1 💚compile0m 9smaster passed
+1 💚checkstyle0m 6smaster passed
+1 💚javadoc0m 8smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 7sMaven dependency ordering for patch
+1 💚mvninstall0m 25sthe patch passed
+1 💚compile0m 17sthe patch passed
+1 💚javac0m 17sthe patch passed
-1 ❌checkstyle0m 4shbase-meta-repair: The patch generated 7 new + 0 unchanged - 0 fixed = 7 total (was 0)
-1 ❌checkstyle0m 4sroot: The patch generated 7 new + 0 unchanged - 0 fixed = 7 total (was 0)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 1sThe patch has no ill-formed XML file.
+1 💚javadoc0m 10sthe patch passed
_ Other Tests _
-1 ❌unit0m 31shbase-meta-repair in the patch failed.
-1 ❌unit6m 44sroot in the patch failed.
+1 💚asflicense0m 9sThe patch does not generate ASF License warnings.
10m 21s
ReasonTests
Failed junit testshbase.repair.TestMetaRepair
hbase.TestRegionsMerger
hbase.repair.TestMetaRepair
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/2/artifact/yetus-precommit-check/output/Dockerfile
GITHUB PR#77
Optional Testsdupname asflicense markdownlint javac javadoc unit xml compile spotbugs findbugs checkstyle
unameLinux 02832fc2b867 5.4.0-1025-aws #25~18.04.1-Ubuntu SMP Fri Sep 11 12:03:04 UTC 2020 x86_64 GNU/Linux
Build toolmaven
git revisionmaster / 5cdc0e2
Default JavaOracle Corporation-1.8.0_265-b01
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/2/artifact/yetus-precommit-check/output/diff-checkstyle-hbase-meta-repair.txt
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/2/artifact/yetus-precommit-check/output/diff-checkstyle-root.txt
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/2/artifact/yetus-precommit-check/output/patch-unit-hbase-meta-repair.txt
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/2/artifact/yetus-precommit-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/2/testReport/
Max. process+thread count939 (vs. ulimit of 1000)
modulesC: hbase-meta-repair . U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/2/console
versionsgit=2.20.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 39sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗markdownlint0m 0smarkdownlint was not available.
+0 🆗spotbugs0m 0sspotbugs executables are not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall0m 48smaster passed
+1 💚compile0m 10smaster passed
+1 💚checkstyle0m 9smaster passed
+1 💚javadoc0m 7smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 7sMaven dependency ordering for patch
+1 💚mvninstall0m 42sthe patch passed
+1 💚compile0m 17sthe patch passed
+1 💚javac0m 17sthe patch passed
-1 ❌checkstyle0m 3shbase-meta-repair: The patch generated 7 new + 0 unchanged - 0 fixed = 7 total (was 0)
-1 ❌checkstyle0m 4sroot: The patch generated 7 new + 0 unchanged - 0 fixed = 7 total (was 0)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 2sThe patch has no ill-formed XML file.
+1 💚javadoc0m 9sthe patch passed
_ Other Tests _
-1 ❌unit0m 31shbase-meta-repair in the patch failed.
-1 ❌unit26m 49sroot in the patch failed.
+1 💚asflicense0m 10sThe patch does not generate ASF License warnings.
31m 0s
ReasonTests
Failed junit testshbase.repair.TestMetaRepair
hbase.repair.TestMetaRepair
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/3/artifact/yetus-precommit-check/output/Dockerfile
GITHUB PR#77
Optional Testsdupname asflicense markdownlint javac javadoc unit xml compile spotbugs findbugs checkstyle
unameLinux 90555a1d353a 5.4.0-1025-aws #25~18.04.1-Ubuntu SMP Fri Sep 11 12:03:04 UTC 2020 x86_64 GNU/Linux
Build toolmaven
git revisionmaster / 5cdc0e2
Default JavaOracle Corporation-1.8.0_265-b01
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/3/artifact/yetus-precommit-check/output/diff-checkstyle-hbase-meta-repair.txt
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/3/artifact/yetus-precommit-check/output/diff-checkstyle-root.txt
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/3/artifact/yetus-precommit-check/output/patch-unit-hbase-meta-repair.txt
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/3/artifact/yetus-precommit-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/3/testReport/
Max. process+thread count935 (vs. ulimit of 1000)
modulesC: hbase-meta-repair . U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/3/console
versionsgit=2.20.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 36sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗markdownlint0m 0smarkdownlint was not available.
+0 🆗spotbugs0m 0sspotbugs executables are not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall0m 42smaster passed
+1 💚compile0m 9smaster passed
+1 💚checkstyle0m 6smaster passed
+1 💚javadoc0m 7smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 8sMaven dependency ordering for patch
+1 💚mvninstall0m 25sthe patch passed
+1 💚compile0m 17sthe patch passed
+1 💚javac0m 17sthe patch passed
-1 ❌checkstyle0m 3shbase-meta-repair: The patch generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)
-1 ❌checkstyle0m 5sroot: The patch generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 2sThe patch has no ill-formed XML file.
+1 💚javadoc0m 10sthe patch passed
_ Other Tests _
-1 ❌unit3m 19shbase-meta-repair in the patch passed.
-1 ❌unit17m 40sroot in the patch failed.
+1 💚asflicense0m 9sThe patch does not generate ASF License warnings.
24m 6s
ReasonTests
Failed junit testshbase.repair.TestMetaRepair
hbase.TestRegionsMerger
hbase.repair.TestMetaRepair
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/4/artifact/yetus-precommit-check/output/Dockerfile
GITHUB PR#77
Optional Testsdupname asflicense markdownlint javac javadoc unit xml compile spotbugs findbugs checkstyle
unameLinux a0c3cca40594 5.4.0-1025-aws #25~18.04.1-Ubuntu SMP Fri Sep 11 12:03:04 UTC 2020 x86_64 GNU/Linux
Build toolmaven
git revisionmaster / 5cdc0e2
Default JavaOracle Corporation-1.8.0_265-b01
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/4/artifact/yetus-precommit-check/output/diff-checkstyle-hbase-meta-repair.txt
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/4/artifact/yetus-precommit-check/output/diff-checkstyle-root.txt
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/4/artifact/yetus-precommit-check/output/patch-unit-hbase-meta-repair.txt
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/4/artifact/yetus-precommit-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/4/testReport/
Max. process+thread count942 (vs. ulimit of 1000)
modulesC: hbase-meta-repair . U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/4/console
versionsgit=2.20.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 36sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗markdownlint0m 0smarkdownlint was not available.
+0 🆗spotbugs0m 0sspotbugs executables are not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall0m 44smaster passed
+1 💚compile0m 10smaster passed
+1 💚checkstyle0m 6smaster passed
+1 💚javadoc0m 7smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 8sMaven dependency ordering for patch
+1 💚mvninstall0m 25sthe patch passed
+1 💚compile0m 17sthe patch passed
+1 💚javac0m 17sthe patch passed
+1 💚checkstyle0m 8sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 2sThe patch has no ill-formed XML file.
+1 💚javadoc0m 10sthe patch passed
_ Other Tests _
+1 💚unit0m 46shbase-meta-repair in the patch passed.
-1 ❌unit8m 19sroot in the patch failed.
+1 💚asflicense0m 9sThe patch does not generate ASF License warnings.
12m 16s
ReasonTests
Failed junit testshbase.TestRegionsMerger
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/5/artifact/yetus-precommit-check/output/Dockerfile
GITHUB PR#77
Optional Testsdupname asflicense markdownlint javac javadoc unit xml compile spotbugs findbugs checkstyle
unameLinux 2fdc34118b31 5.4.0-1025-aws #25~18.04.1-Ubuntu SMP Fri Sep 11 12:03:04 UTC 2020 x86_64 GNU/Linux
Build toolmaven
git revisionmaster / 5cdc0e2
Default JavaOracle Corporation-1.8.0_265-b01
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/5/artifact/yetus-precommit-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/5/testReport/
Max. process+thread count942 (vs. ulimit of 1000)
modulesC: hbase-meta-repair . U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/5/console
versionsgit=2.20.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@wchevreuilwchevreuil left a comment

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.

Have you tried HBCK2 addFsRegionsMissingInMeta and extraRegionsInMeta functions? I believe those do the same as what you are proposing here, in other words, use hdfs info as the source of truth to rebuild meta.

@VictorZeng

Copy link
Copy Markdown
Author

This testcase for RegionsMerger run failed:

[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.hbase.TestRegionsMerger
[ERROR] Tests run: 9, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 102.515 s <<< FAILURE! - in org.apache.hbase.TestRegionsMerger
[ERROR] testMergeRegionsInvalidParams(org.apache.hbase.TestRegionsMerger) Time elapsed: 0.422 s <<< ERROR!
java.io.IOException: java.lang.Exception: java.lang.OutOfMemoryError: unable to create new native thread
......

@VictorZeng

VictorZeng commented Oct 7, 2020

Copy link
Copy Markdown
Author

@wchevreuil There is no HbckService in versions of hbase before 2.0.3 and 2.1.1. HBCK2 will not work against these versions. If users use Hbase 2.1.0 version, you can use this tool to repair metadata.

@Apache9

Copy link
Copy Markdown
Contributor

Have you tried HBCK2 addFsRegionsMissingInMeta and extraRegionsInMeta functions? I believe those do the same as what you are proposing here, in other words, use hdfs info as the source of truth to rebuild meta.

This is a fallback tool to reconstruct the meta region when users are deploying a 2.x version without HBCK2 support. I think it is useful for our users?

@wchevreuil

Copy link
Copy Markdown
Contributor

There is no HbckService in versions of hbase before 2.0.3 and 2.1.1. HBCK2 will not work against these versions. If users use Hbase 2.1.0 version, you can use this tool to repair metadata.

Have you tried use these functions and got some error? If so, we should fix that, as neither addFsRegionsMissingInMeta nor extraRegionsInMeta rely on HbckService, they perform fixes on their own, thus, there should be no hbase version validation when using these two functions, and they should be compatible with the above versions.

@VictorZeng

VictorZeng commented Oct 8, 2020

Copy link
Copy Markdown
Author

There is no HbckService in versions of hbase before 2.0.3 and 2.1.1. HBCK2 will not work against these versions. If users use Hbase 2.1.0 version, you can use this tool to repair metadata.

Have you tried use these functions and got some error? If so, we should fix that, as neither addFsRegionsMissingInMeta nor extraRegionsInMeta rely on HbckService, they perform fixes on their own, thus, there should be no hbase version validation when using these two functions, and they should be compatible with the above versions.

Hi wchevreuil, although both addFsRegionsMissingInMeta and extraRegionsInMeta do not rely on HbckService, but assigns command rely on HbckService... So I think this tool is very useful.

@wchevreuil

Copy link
Copy Markdown
Contributor

There is no HbckService in versions of hbase before 2.0.3 and 2.1.1. HBCK2 will not work against these versions. If users use Hbase 2.1.0 version, you can use this tool to repair metadata.

Have you tried use these functions and got some error? If so, we should fix that, as neither addFsRegionsMissingInMeta nor extraRegionsInMeta rely on HbckService, they perform fixes on their own, thus, there should be no hbase version validation when using these two functions, and they should be compatible with the above versions.

Hi wchevreuil, although both addFsRegionsMissingInMeta and extraRegionsInMeta do not rely on HbckService, but assigns command rely on HbckService... So I think this tool is very useful.

Hi wchevreuil, although both addFsRegionsMissingInMeta and extraRegionsInMeta do not rely on HbckService, but assigns command rely on HbckService... So I think this tool is very useful.

Then the only extra bit is a bulk assignment? Could it reuse addFsRegionsMissingInMeta and extraRegionsInMeta, instead of providing extra lines of code that do same as the already existing methods? I do agree the command proposed here is very convenient, but we should re-use already existing code as much as possible.

@VictorZeng

Copy link
Copy Markdown
Author

There is no HbckService in versions of hbase before 2.0.3 and 2.1.1. HBCK2 will not work against these versions. If users use Hbase 2.1.0 version, you can use this tool to repair metadata.

Have you tried use these functions and got some error? If so, we should fix that, as neither addFsRegionsMissingInMeta nor extraRegionsInMeta rely on HbckService, they perform fixes on their own, thus, there should be no hbase version validation when using these two functions, and they should be compatible with the above versions.

Hi wchevreuil, although both addFsRegionsMissingInMeta and extraRegionsInMeta do not rely on HbckService, but assigns command rely on HbckService... So I think this tool is very useful.

Hi wchevreuil, although both addFsRegionsMissingInMeta and extraRegionsInMeta do not rely on HbckService, but assigns command rely on HbckService... So I think this tool is very useful.

Then the only extra bit is a bulk assignment? Could it reuse addFsRegionsMissingInMeta and extraRegionsInMeta, instead of providing extra lines of code that do same as the already existing methods? I do agree the command proposed here is very convenient, but we should re-use already existing code as much as possible.

This tool function is more similar to the hbck1 fixMeta command, it can repair the metadata when users are deploying a 2.x version without HBCK2 support more quickly and conveniently. So it's necessary to provide extra codes. I think it's better to be independent.

@wchevreuil

Copy link
Copy Markdown
Contributor

it can repair the metadata when users are deploying a 2.x version without HBCK2 support more quickly and conveniently.

I agree with that, and that we can do it without the server side support for hbck2

So it's necessary to provide extra codes. I think it's better to be independent.

We already have functions/methods on hbck2 that perform fixes without relying on server side support for hbck2, so I see no reason to add an entirely extra module whose scope could/should be contained within hbck2. And for this specific solution, I already mentioned some methods that could be reused by some sort of coordination logic that could give a less interactive experience, without the need to duplicate code to do essentially the same thing.

@wchevreuilwchevreuil left a comment

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.

See my latest comment above.

@busbey

Copy link
Copy Markdown
Contributor

@VictorZeng still working on this?

@VictorZeng

Copy link
Copy Markdown
Author

@busbey What do you think of megre the Meta Repair Tool into hbase-tools module ?

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 9sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗markdownlint0m 0smarkdownlint was not available.
+0 🆗spotbugs0m 0sspotbugs executables are not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall0m 46smaster passed
+1 💚compile0m 10smaster passed
+1 💚checkstyle0m 7smaster passed
+1 💚javadoc0m 8smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 8sMaven dependency ordering for patch
+1 💚mvninstall0m 26sthe patch passed
+1 💚compile0m 19sthe patch passed
+1 💚javac0m 19sthe patch passed
+1 💚checkstyle0m 8sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 2sThe patch has no ill-formed XML file.
+1 💚javadoc0m 11sthe patch passed
_ Other Tests _
+1 💚unit0m 48shbase-meta-repair in the patch passed.
+1 💚unit6m 14sroot in the patch passed.
+1 💚asflicense0m 9sThe patch does not generate ASF License warnings.
10m 55s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/6/artifact/yetus-precommit-check/output/Dockerfile
GITHUB PR#77
Optional Testsdupname asflicense markdownlint javac javadoc unit xml compile spotbugs findbugs checkstyle
unameLinux 8e13243b309e 5.4.0-1025-aws #25~18.04.1-Ubuntu SMP Fri Sep 11 12:03:04 UTC 2020 x86_64 GNU/Linux
Build toolmaven
git revisionmaster / 2958eeb
Default JavaOracle Corporation-1.8.0_282-b08
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/6/testReport/
Max. process+thread count1285 (vs. ulimit of 5000)
modulesC: hbase-meta-repair . U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/6/console
versionsgit=2.20.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 57sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗markdownlint0m 0smarkdownlint was not available.
+0 🆗spotbugs0m 0sspotbugs executables are not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall0m 53smaster passed
+1 💚compile0m 10smaster passed
+1 💚checkstyle0m 7smaster passed
+1 💚javadoc0m 7smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 2sMaven dependency ordering for patch
-1 ❌mvninstall0m 3sroot in the patch failed.
-1 ❌mvninstall0m 4shbase-meta-repair in the patch failed.
-1 ❌compile0m 3sroot in the patch failed.
-1 ❌compile0m 3shbase-meta-repair in the patch failed.
-1 ❌javac0m 3sroot in the patch failed.
-1 ❌javac0m 3shbase-meta-repair in the patch failed.
-1 ❌checkstyle0m 1sThe patch fails to run checkstyle in root
-1 ❌checkstyle0m 1sThe patch fails to run checkstyle in hbase-meta-repair
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 2sThe patch has no ill-formed XML file.
-1 ❌javadoc0m 3sroot in the patch failed.
-1 ❌javadoc0m 3shbase-meta-repair in the patch failed.
_ Other Tests _
-1 ❌unit0m 4sroot in the patch failed.
-1 ❌unit0m 3shbase-meta-repair in the patch failed.
+0 🆗asflicense0m 6sASF License check generated no output?
3m 3s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/Dockerfile
GITHUB PR#77
Optional Testsdupname asflicense markdownlint javac javadoc unit xml compile spotbugs findbugs checkstyle
unameLinux 46b49e44696a 5.4.0-1025-aws #25~18.04.1-Ubuntu SMP Fri Sep 11 12:03:04 UTC 2020 x86_64 GNU/Linux
Build toolmaven
git revisionmaster / 8d667b1
Default JavaOracle Corporation-1.8.0_282-b08
mvninstallhttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-mvninstall-root.txt
mvninstallhttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-mvninstall-hbase-meta-repair.txt
compilehttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-compile-root.txt
compilehttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-compile-hbase-meta-repair.txt
javachttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-compile-root.txt
javachttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-compile-hbase-meta-repair.txt
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/buildtool-patch-checkstyle-root.txt
checkstylehttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/buildtool-patch-checkstyle-hbase-meta-repair.txt
javadochttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-javadoc-root.txt
javadochttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-javadoc-hbase-meta-repair.txt
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-unit-root.txt
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-unit-hbase-meta-repair.txt
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/testReport/
Max. process+thread count38 (vs. ulimit of 5000)
modulesC: . hbase-meta-repair U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/console
versionsgit=2.20.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 53sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗markdownlint0m 0smarkdownlint was not available.
+0 🆗spotbugs0m 0sspotbugs executables are not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall0m 54smaster passed
+1 💚compile0m 11smaster passed
+1 💚checkstyle0m 7smaster passed
+1 💚javadoc0m 7smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 3sMaven dependency ordering for patch
-1 ❌mvninstall0m 3sroot in the patch failed.
-1 ❌mvninstall0m 3shbase-meta-repair in the patch failed.
-1 ❌compile0m 4sroot in the patch failed.
-1 ❌compile0m 3shbase-meta-repair in the patch failed.
-1 ❌javac0m 4sroot in the patch failed.
-1 ❌javac0m 3shbase-meta-repair in the patch failed.
-1 ❌checkstyle0m 1sThe patch fails to run checkstyle in root
-1 ❌checkstyle0m 1sThe patch fails to run checkstyle in hbase-meta-repair
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 2sThe patch has no ill-formed XML file.
-1 ❌javadoc0m 3sroot in the patch failed.
-1 ❌javadoc0m 3shbase-meta-repair in the patch failed.
_ Other Tests _
-1 ❌unit0m 4sroot in the patch failed.
-1 ❌unit0m 3shbase-meta-repair in the patch failed.
+0 🆗asflicense0m 6sASF License check generated no output?
3m 0s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hbase.apache.org/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/Dockerfile
GITHUB PR#77
Optional Testsdupname asflicense markdownlint javac javadoc unit xml compile spotbugs findbugs checkstyle
unameLinux 6cf55e0ac371 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64 GNU/Linux
Build toolmaven
git revisionmaster / b7d9fc8
Default JavaOracle Corporation-1.8.0_282-b08
mvninstallhttps://ci-hbase.apache.org/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-mvninstall-root.txt
mvninstallhttps://ci-hbase.apache.org/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-mvninstall-hbase-meta-repair.txt
compilehttps://ci-hbase.apache.org/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-compile-root.txt
compilehttps://ci-hbase.apache.org/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-compile-hbase-meta-repair.txt
javachttps://ci-hbase.apache.org/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-compile-root.txt
javachttps://ci-hbase.apache.org/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-compile-hbase-meta-repair.txt
checkstylehttps://ci-hbase.apache.org/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/buildtool-patch-checkstyle-root.txt
checkstylehttps://ci-hbase.apache.org/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/buildtool-patch-checkstyle-hbase-meta-repair.txt
javadochttps://ci-hbase.apache.org/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-javadoc-root.txt
javadochttps://ci-hbase.apache.org/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-javadoc-hbase-meta-repair.txt
unithttps://ci-hbase.apache.org/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-unit-root.txt
unithttps://ci-hbase.apache.org/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/artifact/yetus-precommit-check/output/patch-unit-hbase-meta-repair.txt
Test Resultshttps://ci-hbase.apache.org/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/testReport/
Max. process+thread count38 (vs. ulimit of 5000)
modulesC: . hbase-meta-repair U: .
Console outputhttps://ci-hbase.apache.org/job/HBase-Operator-Tools-PreCommit/job/PR-77/1/console
versionsgit=2.20.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

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

@VictorZeng@Apache-HBase@Apache9@wchevreuil@busbey