Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 03A18200ABD for ; Sat, 14 May 2016 22:37:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EB58E160969; Sat, 14 May 2016 20:37:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 655FF160868 for ; Sat, 14 May 2016 22:37:14 +0200 (CEST) Received: (qmail 62195 invoked by uid 500); 14 May 2016 20:37:13 -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 62184 invoked by uid 99); 14 May 2016 20:37:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 May 2016 20:37:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 12D9D2C1F71 for ; Sat, 14 May 2016 20:37:13 +0000 (UTC) Date: Sat, 14 May 2016 20:37:13 +0000 (UTC) From: "Appy (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (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 archived-at: Sat, 14 May 2016 20:37:15 -0000 [ https://issues.apache.org/jira/browse/HBASE-11625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Appy updated HBASE-11625: ------------------------- Attachment: HBASE-11625-branch-1.2-v1.patch Here's branch-1.2 patch. I don't plan to backport it further. This itself was a lot of work since code was so much different at the places this patch is touching. > 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, 0.98.5, 1.0.1.1, 1.0.3 > Reporter: qian wang > Assignee: Appy > Fix For: 2.0.0, 1.3.0, 1.4.0 > > Attachments: 2711de1fdf73419d9f8afc6a8b86ce64.gz, HBASE-11625-branch-1-v1.patch, HBASE-11625-branch-1.2-v1.patch, HBASE-11625-master-v2.patch, HBASE-11625-master-v3.patch, HBASE-11625-master.patch, HBASE-11625.patch, correct-hfile, corrupted-header-hfile > > > 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.3.4#6332)