[
https://issues.apache.org/jira/browse/HBASE-5547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13272848#comment-13272848
]
[email protected] commented on HBASE-5547:
------------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4633/#review7794
-----------------------------------------------------------
Heading to a meeting.
Below is first part of review.
src/main/java/org/apache/hadoop/hbase/backup/HFileArchiveCleanup.java
<https://reviews.apache.org/r/4633/#comment17105>
We know all is true when table is null, right ?
Seems we don't need this boolean.
src/main/java/org/apache/hadoop/hbase/backup/HFileArchiveCleanup.java
<https://reviews.apache.org/r/4633/#comment17100>
"aren't" -> "are"
src/main/java/org/apache/hadoop/hbase/backup/HFileArchiveCleanup.java
<https://reviews.apache.org/r/4633/#comment17101>
Either remove 'down' or move it to the end of the sentence
src/main/java/org/apache/hadoop/hbase/backup/HFileArchiveCleanup.java
<https://reviews.apache.org/r/4633/#comment17102>
Please check return value.
I think we should remember the files which we are unable to delete and
display them at the end.
src/main/java/org/apache/hadoop/hbase/backup/HFileArchiveCleanup.java
<https://reviews.apache.org/r/4633/#comment17104>
Would anyone specify start == end ?
src/main/java/org/apache/hadoop/hbase/backup/HFileArchiveTableMonitor.java
<https://reviews.apache.org/r/4633/#comment17106>
License, please.
src/main/java/org/apache/hadoop/hbase/backup/HFileDisposer.java
<https://reviews.apache.org/r/4633/#comment17107>
License.
src/main/java/org/apache/hadoop/hbase/backup/HFileDisposer.java
<https://reviews.apache.org/r/4633/#comment17108>
This condition deserves an exception, I think.
src/main/java/org/apache/hadoop/hbase/backup/HFileDisposer.java
<https://reviews.apache.org/r/4633/#comment17109>
Is it possible to provide more information in this exception ?
e.g. by using toArchive collection ?
- Ted
On 2012-05-10 20:28:50, Jesse Yates wrote:
bq.
bq. -----------------------------------------------------------
bq. This is an automatically generated e-mail. To reply, visit:
bq. https://reviews.apache.org/r/4633/
bq. -----------------------------------------------------------
bq.
bq. (Updated 2012-05-10 20:28:50)
bq.
bq.
bq. Review request for hbase, Michael Stack and Lars Hofhansl.
bq.
bq.
bq. Summary
bq. -------
bq.
bq. Essentially, whenever an hfile would be deleted, it is instead moved to
the archive directory. In this impl, the archive directory is on a per table
basis, but defaults to '.archive'. Removing hfiles occurs in three places -
compaction, merge and catalog janitor. The former and two latter are distinctly
different code paths, but but did pull out some similarities. The latter two
end up calling the same method, so there should be a reasonable amount of
overlap.
bq.
bq. Implementation wise:
bq. Updated the HMasterInterface to pass the calls onto the zookeeper.
bq. Added a zk listener to handle updates from the master to the RS to
backup.
bq. Added a utility for removing files and finding archive directories
bq. Added tests for the regionserver and catalogjanitor approaches.
bq. Added creation of manager in regionserver.
bq.
bq.
bq. This addresses bug HBASE-5547.
bq. https://issues.apache.org/jira/browse/HBASE-5547
bq.
bq.
bq. Diffs
bq. -----
bq.
bq. src/main/java/org/apache/hadoop/hbase/HConstants.java 2f432c4
bq. src/main/java/org/apache/hadoop/hbase/backup/HFileArchiveCleanup.java
PRE-CREATION
bq. src/main/java/org/apache/hadoop/hbase/backup/HFileArchiveMonitor.java
PRE-CREATION
bq.
src/main/java/org/apache/hadoop/hbase/backup/HFileArchiveTableMonitor.java
PRE-CREATION
bq. src/main/java/org/apache/hadoop/hbase/backup/HFileDisposer.java
PRE-CREATION
bq.
src/main/java/org/apache/hadoop/hbase/backup/TableHFileArchiveTracker.java
PRE-CREATION
bq. src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java 5d4be3f
bq. src/main/java/org/apache/hadoop/hbase/client/HFileArchiveManager.java
PRE-CREATION
bq. src/main/java/org/apache/hadoop/hbase/master/CatalogJanitor.java e751f65
bq. src/main/java/org/apache/hadoop/hbase/master/HMaster.java 0ad9b18
bq. src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java 1f09be1
bq. src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
f7ac81a
bq.
src/main/java/org/apache/hadoop/hbase/regionserver/RegionServerServices.java
6884d53
bq. src/main/java/org/apache/hadoop/hbase/regionserver/Store.java bf1618e
bq. src/main/java/org/apache/hadoop/hbase/util/HFileArchiveUtil.java
PRE-CREATION
bq. src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java
33bc1d0
bq. src/main/resources/hbase-default.xml 42d1c4e
bq. src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java 9fba339
bq.
src/test/java/org/apache/hadoop/hbase/backup/SimpleHFileArchiveTableMonitor.java
PRE-CREATION
bq.
src/test/java/org/apache/hadoop/hbase/backup/TestHFileArchivingCleanup.java
PRE-CREATION
bq. src/test/java/org/apache/hadoop/hbase/backup/TestRegionDisposer.java
PRE-CREATION
bq. src/test/java/org/apache/hadoop/hbase/master/MockRegionServer.java
69ccc65
bq. src/test/java/org/apache/hadoop/hbase/master/TestCatalogJanitor.java
1020374
bq.
src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionHFileArchiving.java
PRE-CREATION
bq. src/test/java/org/apache/hadoop/hbase/util/HFileArchiveTestingUtil.java
PRE-CREATION
bq. src/test/java/org/apache/hadoop/hbase/util/MockRegionServerServices.java
3f61cfb
bq.
bq. Diff: https://reviews.apache.org/r/4633/diff
bq.
bq.
bq. Testing
bq. -------
bq.
bq. Added two tests for the separate cases - archiving via the regionserver
and for the catalog tracker. Former runs in a mini cluster and also touches the
changes to HMasterInterface and zookeeper.
bq.
bq.
bq. Thanks,
bq.
bq. Jesse
bq.
bq.
> Don't delete HFiles when in "backup mode"
> -----------------------------------------
>
> Key: HBASE-5547
> URL: https://issues.apache.org/jira/browse/HBASE-5547
> Project: HBase
> Issue Type: New Feature
> Reporter: Lars Hofhansl
> Assignee: Jesse Yates
> Attachments: java_HBASE-5547_v4.patch, java_HBASE-5547_v5.patch,
> java_HBASE-5547_v6.patch, java_HBASE-5547_v7.patch
>
>
> This came up in a discussion I had with Stack.
> It would be nice if HBase could be notified that a backup is in progress (via
> a znode for example) and in that case either:
> 1. rename HFiles to be delete to <file>.bck
> 2. rename the HFiles into a special directory
> 3. rename them to a general trash directory (which would not need to be tied
> to backup mode).
> That way it should be able to get a consistent backup based on HFiles (HDFS
> snapshots or hard links would be better options here, but we do not have
> those).
> #1 makes cleanup a bit harder.
--
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