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 5A489F0A6 for ; Fri, 12 Apr 2013 17:52:16 +0000 (UTC) Received: (qmail 57380 invoked by uid 500); 12 Apr 2013 17:52:16 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 57312 invoked by uid 500); 12 Apr 2013 17:52: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 57303 invoked by uid 99); 12 Apr 2013 17:52:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Apr 2013 17:52:16 +0000 Date: Fri, 12 Apr 2013 17:52:16 +0000 (UTC) From: "Jimmy Xiang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-8314) HLogSplitter can retry to open a 0-length hlog file 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-8314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jimmy Xiang updated HBASE-8314: ------------------------------- Attachment: trunk-8314_v2.patch Addressed Matteo and Nicolas' comments. I will commit it tomorrow if no objection. > HLogSplitter can retry to open a 0-length hlog file > --------------------------------------------------- > > Key: HBASE-8314 > URL: https://issues.apache.org/jira/browse/HBASE-8314 > Project: HBase > Issue Type: Bug > Reporter: Jimmy Xiang > Assignee: Jimmy Xiang > Attachments: region-server.log, trunk-8314.patch, trunk-8314_v2.patch > > > In case a HLog file is of size 0, and it is under recovery, HLogSplitter will fail to open it since it can get the file length, therefore, master can't start. > {noformat} > java.io.IOException: Cannot obtain block length for LocatedBlock{...; getBlockSize()=0; corrupt=false; offset=0; locs=[...]} > at org.apache.hadoop.hdfs.DFSInputStream.readBlockLength(DFSInputStream.java:238) > at org.apache.hadoop.hdfs.DFSInputStream.fetchLocatedBlocksAndGetLastBlockLength(DFSInputStream.java:182) > at org.apache.hadoop.hdfs.DFSInputStream.openInfo(DFSInputStream.java:124) > at org.apache.hadoop.hdfs.DFSInputStream.(DFSInputStream.java:117) > at org.apache.hadoop.hdfs.DFSClient.open(DFSClient.java:1080) > {noformat} -- 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