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 226761075A for ; Thu, 20 Mar 2014 13:22:50 +0000 (UTC) Received: (qmail 54053 invoked by uid 500); 20 Mar 2014 13:22:46 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 53921 invoked by uid 500); 20 Mar 2014 13:22:45 -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 53892 invoked by uid 99); 20 Mar 2014 13:22:44 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Mar 2014 13:22:44 +0000 Date: Thu, 20 Mar 2014 13:22:44 +0000 (UTC) From: "Kihwal Lee (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-6129) When a replica is not found for deletion, do not throw exception. 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-6129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13941716#comment-13941716 ] Kihwal Lee commented on HDFS-6129: ---------------------------------- bq. move v = .... after the 'if' block. v is also used for constructing the error message in the 'if' block. +1 the patch looks good. > When a replica is not found for deletion, do not throw exception. > ----------------------------------------------------------------- > > Key: HDFS-6129 > URL: https://issues.apache.org/jira/browse/HDFS-6129 > Project: Hadoop HDFS > Issue Type: Bug > Components: datanode > Reporter: Tsz Wo Nicholas Sze > Assignee: Tsz Wo Nicholas Sze > Priority: Minor > Attachments: h6129_20140319.patch > > > It is actually a valid case if a replica is not found for deletion -- the replica may be deleted earlier. So that we should not throw exceptions. -- This message was sent by Atlassian JIRA (v6.2#6252)