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 F41E2F8CE for ; Sun, 12 May 2013 02:37:17 +0000 (UTC) Received: (qmail 8494 invoked by uid 500); 12 May 2013 02:37:16 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 8440 invoked by uid 500); 12 May 2013 02:37:16 -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 8375 invoked by uid 99); 12 May 2013 02:37:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 May 2013 02:37:16 +0000 Date: Sun, 12 May 2013 02:37:16 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-8530) Refine error message from ExportSnapshot when there is leftover snapshot in target cluster 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-8530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13655430#comment-13655430 ] Hudson commented on HBASE-8530: ------------------------------- Integrated in HBase-TRUNK-on-Hadoop-2.0.0 #525 (See [https://builds.apache.org/job/HBase-TRUNK-on-Hadoop-2.0.0/525/]) HBASE-8530 Refine error message from ExportSnapshot when there is leftover snapshot in target cluster (Ted Yu) (Revision 1481400) Result = FAILURE tedyu : Files : * /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java > Refine error message from ExportSnapshot when there is leftover snapshot in target cluster > ------------------------------------------------------------------------------------------ > > Key: HBASE-8530 > URL: https://issues.apache.org/jira/browse/HBASE-8530 > Project: HBase > Issue Type: Bug > Reporter: Ted Yu > Assignee: Ted Yu > Priority: Minor > Fix For: 0.98.0, 0.95.1 > > Attachments: 8530-v1.txt > > > ExportSnapshot performs the following validation check before starting export: > {code} > // Check if the snapshot already in-progress > if (outputFs.exists(snapshotTmpDir)) { > System.err.println("A snapshot with the same name '" + snapshotName + "' is in-progress"); > return 1; > } > {code} > The intention was to prevent concurrent snapshot export when snapshot with the same name may be outstanding. > Here is sample output: > {code} > hbase@ip-10-165-36-226 root$ hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot -snapshot snapone -copy-to hdfs://10.12.113.22:8020/apps/hbase/data -mappers 1 > A snapshot with the same name 'snapone' is in-progress > {code} > We should note the actual path in the error message so that user can check whether the snapshot with same name is still pending. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira