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 0947E10ED1 for ; Wed, 21 Aug 2013 13:39:58 +0000 (UTC) Received: (qmail 50920 invoked by uid 500); 21 Aug 2013 13:39:57 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 49389 invoked by uid 500); 21 Aug 2013 13:39:53 -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 49347 invoked by uid 99); 21 Aug 2013 13:39:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Aug 2013 13:39:52 +0000 Date: Wed, 21 Aug 2013 13:39:52 +0000 (UTC) From: "ramkrishna.s.vasudevan (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-9249) Add cp hook before setting PONR in split 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-9249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13746042#comment-13746042 ] ramkrishna.s.vasudevan commented on HBASE-9249: ----------------------------------------------- These changes are enough Rajesh. For doing step 10 do we need to use the information from SplitInfo and add it to Meta? > Add cp hook before setting PONR in split > ---------------------------------------- > > Key: HBASE-9249 > URL: https://issues.apache.org/jira/browse/HBASE-9249 > Project: HBase > Issue Type: Sub-task > Reporter: rajeshbabu > Attachments: HBASE-9249.patch > > > This hook helps to perform split on user region and corresponding index region such that both will be split or none. > With this hook split for user and index region as follows > user region > =========== > 1) Create splitting znode for user region split > 2) Close parent user region > 3) split user region storefiles > 4) instantiate child regions of user region > Through the new hook we can call index region transitions as below > index region > =========== > 5) Create splitting znode for index region split > 6) Close parent index region > 7) Split storefiles of index region > 8) instantiate child regions of the index region > If any failures in 5,6,7,8 rollback the steps and return null, on null return throw exception to rollback for 1,2,3,4 > 9) set PONR > 10) do batch put of offline and split entries for user and index regions > user region > =========== > 11) open daughers of user regions and transition znode to split. > We can open index region daughters and transition znode to split through postSplit hook which is already present. > index region > ============ > 12) open daughers of index regions and transition znode to split. > Even if region server crashes also at the end both user and index regions will be split or none -- 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