Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 27882 invoked from network); 22 Jun 2010 19:13:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Jun 2010 19:13:23 -0000 Received: (qmail 89478 invoked by uid 500); 22 Jun 2010 19:13:22 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 89227 invoked by uid 500); 22 Jun 2010 19:13:22 -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 89219 invoked by uid 99); 22 Jun 2010 19:13:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jun 2010 19:13:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jun 2010 19:13:19 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5MJCv8G020542 for ; Tue, 22 Jun 2010 19:12:57 GMT Message-ID: <3629640.19421277233977375.JavaMail.jira@thor> Date: Tue, 22 Jun 2010 15:12:57 -0400 (EDT) From: "Konstantin Shvachko (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-1239) All datanodes are bad in 2nd phase In-Reply-To: <2516817.49911276754603675.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-1239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12881305#action_12881305 ] Konstantin Shvachko commented on HDFS-1239: ------------------------------------------- > client-namenode protocol does not allow the client to say to the namenode > "hey, i tried to write to the datanodes you've given me, but it fails, could you give me other datanodes please?" This is incorrect. There is such logic. See {{DFSOutputStream.DataStreamer.run()}}. This is where the logic is implemented. If you are on 0.20 then it should be in DataNode.java. The client retries but the name-node does not have more data-nodes to assign the replicas to - there is only 2 in the cluster. > All datanodes are bad in 2nd phase > ---------------------------------- > > Key: HDFS-1239 > URL: https://issues.apache.org/jira/browse/HDFS-1239 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs client > Affects Versions: 0.20.1 > Reporter: Thanh Do > > - Setups: > number of datanodes = 2 > replication factor = 2 > Type of failure: transient fault (a java i/o call throws an exception or return false) > Number of failures = 2 > when/where failures happen = during the 2nd phase of the pipeline, each happens at each datanode when trying to perform I/O > (e.g. dataoutputstream.flush()) > > - Details: > > This is similar to HDFS-1237. > In this case, node1 throws exception that makes client creates > a pipeline only with node2, then tries to redo the whole thing, > which throws another failure. So at this point, the client considers > all datanodes are bad, and never retries the whole thing again, > (i.e. it never asks the namenode again to ask for a new set of datanodes). > In HDFS-1237, the bug is due to permanent disk fault. In this case, it's about transient error. > This bug was found by our Failure Testing Service framework: > http://www.eecs.berkeley.edu/Pubs/TechRpts/2010/EECS-2010-98.html > For questions, please email us: Thanh Do (thanhdo@cs.wisc.edu) and > Haryadi Gunawi (haryadi@eecs.berkeley.edu) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.