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 17FA3110D0 for ; Thu, 31 Jul 2014 07:38:40 +0000 (UTC) Received: (qmail 17611 invoked by uid 500); 31 Jul 2014 07:38:39 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 17559 invoked by uid 500); 31 Jul 2014 07:38:39 -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 17357 invoked by uid 99); 31 Jul 2014 07:38:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jul 2014 07:38:39 +0000 Date: Thu, 31 Jul 2014 07:38:39 +0000 (UTC) From: "qian wang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-11625) Reading datablock throws "Invalid HFile block magic" and can not switch to hdfs checksum 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-11625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14080612#comment-14080612 ] qian wang commented on HBASE-11625: ----------------------------------- log is out of date and missing, the stack trace is almost blocktype.parse()-> blocktype.read-> new hfileblock()-> hfileblock.readBlockDataInternal()-> hfileblock.readBlockData().... i am using 0.94 and occured this twice,i saw 0.98 that have the same code. > Reading datablock throws "Invalid HFile block magic" and can not switch to hdfs checksum > ----------------------------------------------------------------------------------------- > > Key: HBASE-11625 > URL: https://issues.apache.org/jira/browse/HBASE-11625 > Project: HBase > Issue Type: Bug > Components: HFile > Affects Versions: 0.94.21, 0.98.4 > Reporter: qian wang > > when using hbase checksum,call readBlockDataInternal() in hfileblock.java, it could happen file corruption but it only can switch to hdfs checksum inputstream till validateBlockChecksum(). If the datablock's header corrupted when b = new HFileBlock(),it throws the exception "Invalid HFile block magic" and the rpc call fail -- This message was sent by Atlassian JIRA (v6.2#6252)