[
https://issues.apache.org/jira/browse/HBASE-4377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13131301#comment-13131301
]
[email protected] commented on HBASE-4377:
------------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/2287/
-----------------------------------------------------------
(Updated 2011-10-20 03:21:33.922683)
Review request for hbase and Ted Yu.
Changes
-------
Addressed comments
* added more logging and better error message
* Handled exit properly.
Summary
-------
Backport to 0.90
commit 89862b73c6358e27220b87b0362599d86ab0fe4a
Author: Jonathan Hsieh <[email protected]>
Date: Wed Sep 28 10:18:11 2011 -0700
HBASE-4377 [hbck] Offline rebuild .META. from fs data only
This addresses bug HBASE-4377.
https://issues.apache.org/jira/browse/HBASE-4377
Diffs (updated)
-----
src/test/java/org/apache/hadoop/hbase/util/hbck/TestOfflineMetaRebuildHole.java
PRE-CREATION
src/test/java/org/apache/hadoop/hbase/util/hbck/TestOfflineMetaRebuildBase.java
PRE-CREATION
src/main/java/org/apache/hadoop/hbase/util/hbck/OfflineMetaRepair.java
PRE-CREATION
src/test/java/org/apache/hadoop/hbase/util/TestHBaseFsck.java f792720
src/test/java/org/apache/hadoop/hbase/util/hbck/HbckTestingUtil.java
PRE-CREATION
src/test/java/org/apache/hadoop/hbase/util/hbck/OfflineMetaRebuildTestCore.java
PRE-CREATION
src/main/java/org/apache/hadoop/hbase/master/MasterFileSystem.java ef246c3
src/main/java/org/apache/hadoop/hbase/util/Bytes.java 13ad026
src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java b04aab6
src/test/java/org/apache/hadoop/hbase/util/hbck/TestOfflineMetaRebuildOverlap.java
PRE-CREATION
Diff: https://reviews.apache.org/r/2287/diff
Testing
-------
Note, the assertion test result is different in the failure cases due to
HBASE-451 changes. (0.90 returns 0 tables since it does a meta scan on empty
meta, trunk branch looks at hdfs dirs, and returns 1).
This version passes after HBASE-4508 (backport HBASE-3777 to 0.90 branch) is
applied.
I believe if that patch is not applied, I could modify the test code to force
some explicit HConnection deletions.
Thanks,
jmhsieh
> [hbck] Offline rebuild .META. from fs data only.
> ------------------------------------------------
>
> Key: HBASE-4377
> URL: https://issues.apache.org/jira/browse/HBASE-4377
> Project: HBase
> Issue Type: New Feature
> Reporter: Jonathan Hsieh
> Assignee: Jonathan Hsieh
> Attachments:
> 0001-HBASE-4377-hbck-Offline-rebuild-.META.-from-fs-data-.patch,
> hbase-4377-trunk.v2.patch
>
>
> In a worst case situation, it may be helpful to have an offline .META.
> rebuilder that just looks at the file system's .regioninfos and rebuilds meta
> from scratch. Users could move bad regions out until there is a clean
> rebuild.
> It would likely fill in region split holes. Follow on work could given
> options to merge or select regions that overlap, or do online rebuilds.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira