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 07E147571 for ; Tue, 18 Oct 2011 05:58:37 +0000 (UTC) Received: (qmail 15563 invoked by uid 500); 18 Oct 2011 05:58:36 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 15354 invoked by uid 500); 18 Oct 2011 05:58:36 -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 15298 invoked by uid 99); 18 Oct 2011 05:58:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2011 05:58:34 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2011 05:58:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2AC7C30D30A for ; Tue, 18 Oct 2011 05:58:11 +0000 (UTC) Date: Tue, 18 Oct 2011 05:58:11 +0000 (UTC) From: "Hudson (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <1697398392.4466.1318917491178.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1478714648.13507.1318215991144.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4562) When split doing offlineParentInMeta encounters error, it'll cause data loss MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-4562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13129521#comment-13129521 ] Hudson commented on HBASE-4562: ------------------------------- Integrated in HBase-0.92 #72 (See [https://builds.apache.org/job/HBase-0.92/72/]) HBASE-4562 When split doing offlineParentInMeta encounters error, it'll cause data loss larsh : Files : * /hbase/branches/0.92/CHANGES.txt * /hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/regionserver/SplitTransaction.java > When split doing offlineParentInMeta encounters error, it'll cause data loss > ---------------------------------------------------------------------------- > > Key: HBASE-4562 > URL: https://issues.apache.org/jira/browse/HBASE-4562 > Project: HBase > Issue Type: Bug > Components: regionserver > Affects Versions: 0.90.4 > Reporter: bluedavy > Assignee: bluedavy > Priority: Blocker > Fix For: 0.90.5 > > Attachments: HBASE-4562-0.90.4.patch, HBASE-4562-0.90.patch, HBASE-4562-0.92.patch, HBASE-4562-trunk.patch, test-4562-0.90.4.txt, test-4562-0.90.txt, test-4562-0.92.txt, test-4562-trunk.txt > > > Follow below steps to replay the problem: > 1. change the SplitTransaction.java as below,just like mock the timeout error. > {code:title=SplitTransaction.java|borderStyle=solid} > if (!testing) { > MetaEditor.offlineParentInMeta(server.getCatalogTracker(), > this.parent.getRegionInfo(), a.getRegionInfo(), b.getRegionInfo()); > throw new IOException("some unexpected error in split"); > } > {code} > 2. update the regionserver code,restart; > 3. create a table & put some data to the table; > 4. split the table; > 5. kill the regionserver hosted the table; > 6. wait some time after master ServerShutdownHandler.process execute,then scan the table,u'll find the data wrote before lost. > We can fix the bug just use the patch. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira