hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matteo Bertozzi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-10111) Verify that a snapshot is not corrupted before restoring it
Date Mon, 09 Dec 2013 23:32:08 GMT

     [ https://issues.apache.org/jira/browse/HBASE-10111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matteo Bertozzi updated HBASE-10111:
------------------------------------

    Attachment: HBASE-10111-v1.patch

v1 adds the assert on the corrupted list > 0, in the testing utily.

{quote}For verifySnapshot(), should IOException other than FileNotFoundException be caught
?{quote}
IOException here means that something is wrong with the HDFS connection, when we get the stats.
so is not related to the snapshot validity. In that case we get the IOException and not the
CorruptedSnapshot one.

> Verify that a snapshot is not corrupted before restoring it
> -----------------------------------------------------------
>
>                 Key: HBASE-10111
>                 URL: https://issues.apache.org/jira/browse/HBASE-10111
>             Project: HBase
>          Issue Type: Bug
>          Components: snapshots
>    Affects Versions: 0.98.0, 0.96.0, 0.94.14
>            Reporter: Matteo Bertozzi
>            Assignee: Matteo Bertozzi
>            Priority: Minor
>             Fix For: 0.98.0, 0.96.1
>
>         Attachments: HBASE-10111-v0.patch, HBASE-10111-v1.patch
>
>
> To avoid assigning/opening regions with missing files, verify that the snapshot is not
corrupted before restoring/cloning it.
> In 96 a corrupted file in a region is "not a problem" since the assignment will give
up after awhile.
> In 94 having a corrupted file in a region means looping forever, on "enable",  until
manual intervention. (Easy way to test this is create a table, disable it, add a corrupted
reference file and enable the table to start looping: you can use echo "foo" > aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message