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 AE759C655 for ; Tue, 23 Jul 2013 08:42:58 +0000 (UTC) Received: (qmail 11494 invoked by uid 500); 23 Jul 2013 08:42:54 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 11392 invoked by uid 500); 23 Jul 2013 08:42:51 -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 11355 invoked by uid 99); 23 Jul 2013 08:42:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jul 2013 08:42:49 +0000 Date: Tue, 23 Jul 2013 08:42:49 +0000 (UTC) From: "Jing Zhao (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-5020) Make DatanodeProtocol#blockReceivedAndDeleted idempotent 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-5020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jing Zhao updated HDFS-5020: ---------------------------- Attachment: HDFS-5020.002.patch Fix the failed test and add a new unit test. > Make DatanodeProtocol#blockReceivedAndDeleted idempotent > -------------------------------------------------------- > > Key: HDFS-5020 > URL: https://issues.apache.org/jira/browse/HDFS-5020 > Project: Hadoop HDFS > Issue Type: Improvement > Affects Versions: 3.0.0 > Reporter: Jing Zhao > Assignee: Jing Zhao > Attachments: HDFS-5020.001.patch, HDFS-5020.002.patch > > > Currently DatanodeProtocol#blockReceivedAndDeleted is not idempotent because pending replication maps in NN only tracks the number of the pending replicas, and a retry request about a received block can cause the pending number decreased more than once. We can make blockReceivedAndDeleted idempotent by tracking corresponding datanodes in the pending replication map. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira