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 0F39510254 for ; Thu, 2 May 2013 12:28:17 +0000 (UTC) Received: (qmail 28875 invoked by uid 500); 2 May 2013 12:28:17 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 28698 invoked by uid 500); 2 May 2013 12:28:17 -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 28656 invoked by uid 99); 2 May 2013 12:28:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 May 2013 12:28:16 +0000 Date: Thu, 2 May 2013 12:28:16 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-7419) revisit hfilelink file name format. 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-7419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13647468#comment-13647468 ] Hudson commented on HBASE-7419: ------------------------------- Integrated in HBase-TRUNK #4094 (See [https://builds.apache.org/job/HBase-TRUNK/4094/]) HBASE-8455 Update ExportSnapshot to reflect changes in HBASE-7419 (Revision 1478297) Result = FAILURE mbertozzi : Files : * /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java * /hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.java > revisit hfilelink file name format. > ----------------------------------- > > Key: HBASE-7419 > URL: https://issues.apache.org/jira/browse/HBASE-7419 > Project: HBase > Issue Type: Sub-task > Components: Client, master, regionserver, snapshots, Zookeeper > Reporter: Jonathan Hsieh > Assignee: Matteo Bertozzi > Fix For: 0.95.0 > > Attachments: HBASE-7419-v0.patch, HBASE-7419-v1.patch, HBASE-7419-v2.patch, HBASE-7419-v3.patch > > > Valid table names are concatted with a '.' to a valid regions names is also a valid table name, and lead to the incorrect interpretation. > {code} > true hfile name constraints: [0-9]+(?:_SeqID_[0-9]+)? > region name constraints : [a-f0-9]{16} (but we currently just use [a-f0-9]+.) > table name constraints : [a-zA-Z0-9_][a-zA-Z0-9_.-]* > {code} > Notice that the table name constraints completely covers all region name constraints and true hfile name constraints. (a valid hfile name is a valid part of a table name, and a valid enc region name is a valid part of a table name. > Currently the hfilelink filename convention is --. Unfortunately, making a ref to this uses the name --
. -- the contactnation of
. is a valid table name used to get interpreted as such. The fix in HBASE-7339 requires a FileNotFoundException before going down the hfile link resolution path. > Regardless of what we do, we need to add some char invalid for table names to the hfilelink or reference filename convention. > Suggestion: if we changed the order of the hfile-link name we could avoid some of the confusion --
@-. (or some other separator char than '@') could be used to avoid handling on the initial filenotfoundexception but I think we'd still need a good chunk of the logic to handle opening half-storefile reader throw a hfilelink. -- 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