Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2AEEE187B8 for ; Fri, 10 Jul 2015 02:03:06 +0000 (UTC) Received: (qmail 97668 invoked by uid 500); 10 Jul 2015 02:03:05 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 97556 invoked by uid 500); 10 Jul 2015 02:03:05 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 97543 invoked by uid 99); 10 Jul 2015 02:03:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2015 02:03:05 +0000 Date: Fri, 10 Jul 2015 02:03:05 +0000 (UTC) From: "Xinwei Qin (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HDFS-8732) Erasure Coding: Fail to read a file with corrupted blocks 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/HDFS-8732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xinwei Qin resolved HDFS-8732. ------------------------------- Resolution: Duplicate > Erasure Coding: Fail to read a file with corrupted blocks > --------------------------------------------------------- > > Key: HDFS-8732 > URL: https://issues.apache.org/jira/browse/HDFS-8732 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: Xinwei Qin > Assignee: Walter Su > Attachments: testReadCorruptedData.patch > > > In system test of reading EC file(HDFS-8259), the methods {{testReadCorruptedData*()}} failed to read a EC file with corrupted blocks(overwrite some data to several blocks and this will make client get a checksum exception). > Exception logs: > {code} > java.lang.NullPointerException > at org.apache.hadoop.hdfs.DFSStripedInputStream$StatefulStripeReader.readChunk(DFSStripedInputStream.java:771) > at org.apache.hadoop.hdfs.DFSStripedInputStream$StripeReader.readStripe(DFSStripedInputStream.java:623) > at org.apache.hadoop.hdfs.DFSStripedInputStream.readOneStripe(DFSStripedInputStream.java:335) > at org.apache.hadoop.hdfs.DFSStripedInputStream.readWithStrategy(DFSStripedInputStream.java:465) > at org.apache.hadoop.hdfs.DFSInputStream.read(DFSInputStream.java:946) > at java.io.DataInputStream.read(DataInputStream.java:149) > at org.apache.hadoop.hdfs.StripedFileTestUtil.verifyStatefulRead(StripedFileTestUtil.java:98) > at org.apache.hadoop.hdfs.TestReadStripedFileWithDecoding.verifyRead(TestReadStripedFileWithDecoding.java:196) > at org.apache.hadoop.hdfs.TestReadStripedFileWithDecoding.testOneFileWithBlockCorrupted(TestReadStripedFileWithDecoding.java:246) > at org.apache.hadoop.hdfs.TestReadStripedFileWithDecoding.testReadCorruptedData11(TestReadStripedFileWithDecoding.java:114) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)