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 2FE62918B for ; Wed, 25 Jan 2012 01:47:02 +0000 (UTC) Received: (qmail 12624 invoked by uid 500); 25 Jan 2012 01:47:02 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 12589 invoked by uid 500); 25 Jan 2012 01:47:01 -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 12581 invoked by uid 99); 25 Jan 2012 01:47:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2012 01:47:01 +0000 X-ASF-Spam-Status: No, hits=-1996.4 required=5.0 tests=ALL_TRUSTED,FS_REPLICA,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2012 01:47:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 089671616B8 for ; Wed, 25 Jan 2012 01:46:40 +0000 (UTC) Date: Wed, 25 Jan 2012 01:46:40 +0000 (UTC) From: "Todd Lipcon (Commented) (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <137303116.75174.1327456000036.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1985997259.41976.1326603039586.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-2791) If block report races with closing of file, replica is incorrectly marked corrupt 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-2791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13192778#comment-13192778 ] Todd Lipcon commented on HDFS-2791: ----------------------------------- >> Case 2) if the block has the correct generation stamp, ignore it (don't add to block locations or mark it corrupt) > This looks ok at first sight. If the generation stamp and length matches with what the NN has is it safe to add it to the blocksmap? Yes, I think so. I had originally thought about doing that, but ATM convinced me otherwise - our thinking is now that this case only occurs because of a temporary delay in transmission of the "correct" state. So we'll always expect to see the FINALIZED report come in soon after one of these RBW replicas. Given that, I think it is simpler/safer to ignore it in all cases. > If block report races with closing of file, replica is incorrectly marked corrupt > --------------------------------------------------------------------------------- > > Key: HDFS-2791 > URL: https://issues.apache.org/jira/browse/HDFS-2791 > Project: Hadoop HDFS > Issue Type: Bug > Components: data-node, name-node > Affects Versions: 0.22.0, 0.23.0 > Reporter: Todd Lipcon > Assignee: Todd Lipcon > Attachments: hdfs-2791-test.txt, hdfs-2791.txt, hdfs-2791.txt, hdfs-2791.txt > > > The following sequence of events results in a replica mistakenly marked corrupt: > 1. Pipeline is open with 2 replicas > 2. DN1 generates a block report but is slow in sending to the NN (eg some flaky network). It gets "stuck" right before the block report RPC. > 3. Client closes the file. > 4. DN2 is fast and sends blockReceived to the NN. NN marks the block as COMPLETE > 5. DN1's block report proceeds, and includes the block in an RBW state. > 6. (x) NN incorrectly marks the replica as corrupt, since it is an RBW replica on a COMPLETE block. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira