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 83FB8200B50 for ; Thu, 14 Jul 2016 19:10:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 83049160A60; Thu, 14 Jul 2016 17:10:22 +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 BEEF7160A85 for ; Thu, 14 Jul 2016 19:10:21 +0200 (CEST) Received: (qmail 5772 invoked by uid 500); 14 Jul 2016 17:10:20 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 5709 invoked by uid 99); 14 Jul 2016 17:10:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2016 17:10:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A43882C02A9 for ; Thu, 14 Jul 2016 17:10:20 +0000 (UTC) Date: Thu, 14 Jul 2016 17:10:20 +0000 (UTC) From: "Yongjun Zhang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-10626) VolumeScanner prints incorrect IOException in reportBadBlocks operation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 14 Jul 2016 17:10:22 -0000 [ https://issues.apache.org/jira/browse/HDFS-10626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15377289#comment-15377289 ] Yongjun Zhang commented on HDFS-10626: -------------------------------------- HI [~linyiqun], Thanks for reporting and working on the issue. I made a similar comment here https://issues.apache.org/jira/browse/HDFS-10625?focusedCommentId=15377247&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15377247 I think it's helpful to report more info about the replica when there is any issue. Thanks. > VolumeScanner prints incorrect IOException in reportBadBlocks operation > ----------------------------------------------------------------------- > > Key: HDFS-10626 > URL: https://issues.apache.org/jira/browse/HDFS-10626 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Yiqun Lin > Assignee: Yiqun Lin > Priority: Minor > Attachments: HDFS-10626.001.patch > > > VolumeScanner throws incorrect IOException in {{datanode.reportBadBlocks}}. The related codes: > {code} > public void handle(ExtendedBlock block, IOException e) { > FsVolumeSpi volume = scanner.volume; > ... > try { > scanner.datanode.reportBadBlocks(block, volume); > } catch (IOException ie) { > // This is bad, but not bad enough to shut down the scanner. > LOG.warn("Cannot report bad " + block.getBlockId(), e); > } > } > {code} > The IOException that printed in the log should be {{ie}} rather than {{e}} which was passed in method {{handle(ExtendedBlock block, IOException e)}}. > It will be a important info that can help us to know why datanode reporBadBlocks failed. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org