Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A21A5100F2 for ; Thu, 12 Dec 2013 01:27:11 +0000 (UTC) Received: (qmail 989 invoked by uid 500); 12 Dec 2013 01:27:11 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 955 invoked by uid 500); 12 Dec 2013 01:27:11 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 946 invoked by uid 99); 12 Dec 2013 01:27:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Dec 2013 01:27:11 +0000 Date: Thu, 12 Dec 2013 01:27:11 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-10111) Verify that a snapshot is not corrupted before restoring it MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-10111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13845970#comment-13845970 ] Hudson commented on HBASE-10111: -------------------------------- SUCCESS: Integrated in hbase-0.96-hadoop2 #147 (See [https://builds.apache.org/job/hbase-0.96-hadoop2/147/]) HBASE-10111 Verify that a snapshot is not corrupted before restoring it (mbertozzi: rev 1549819) * /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java * /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreFileInfo.java * /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/SnapshotReferenceUtil.java * /hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestRestoreSnapshotFromClient.java * /hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/SnapshotTestingUtils.java > 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, 0.94.15 > > 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)