Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A899F187CF for ; Thu, 18 Feb 2016 21:24:23 +0000 (UTC) Received: (qmail 431 invoked by uid 500); 18 Feb 2016 21:24:18 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 375 invoked by uid 500); 18 Feb 2016 21:24:18 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 344 invoked by uid 99); 18 Feb 2016 21:24:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2016 21:24:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3A2BC2C1F58 for ; Thu, 18 Feb 2016 21:24:18 +0000 (UTC) Date: Thu, 18 Feb 2016 21:24:18 +0000 (UTC) From: "Jing Zhao (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-9829) Erasure Coding: Improve few exception handling logic of ErasureCodingWorker 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-9829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15153113#comment-15153113 ] Jing Zhao commented on HDFS-9829: --------------------------------- Thanks for working on this, [~rakeshr]. The patch looks good to me. The only nit is that {{reportCorruptedBlocks}} no longer throws IOException. +1 after addressing it. > Erasure Coding: Improve few exception handling logic of ErasureCodingWorker > --------------------------------------------------------------------------- > > Key: HDFS-9829 > URL: https://issues.apache.org/jira/browse/HDFS-9829 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: erasure-coding > Reporter: Rakesh R > Assignee: Rakesh R > Priority: Minor > Attachments: HDFS-9829-001.patch > > > # Cancel remaining reads on InterruptedException. > {code} > } catch (InterruptedException e) { > LOG.info("Read data interrupted.", e); > break; > } > {code} > # Shouldn't fail recontruction due to an IOException errors while reporting corrupt blocks. > {code} > } finally { > // report corrupted blocks to NN > reportCorruptedBlocks(corruptionMap); > } > {code} > # {{ECW#closeBlockReader()}} function can be simplified using {{IOUtils.closeStream(closable)}} > # Also, use {} instead of string concatenation in logger. > {code} > LOG.debug("Using striped reads; pool threads=" + num); > //... > LOG.warn("Found Checksum error for " + reader.block + " from " > + reader.source + " at " + e.getPos()); > //... > LOG.debug("Using striped block reconstruction; pool threads=" + num); > //.. > LOG.warn("Failed to reconstruct striped block: " + blockGroup, e); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)