Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 35660 invoked from network); 12 Sep 2010 01:01:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Sep 2010 01:01:19 -0000 Received: (qmail 52419 invoked by uid 500); 12 Sep 2010 01:01:19 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 52330 invoked by uid 500); 12 Sep 2010 01:01:19 -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 52317 invoked by uid 99); 12 Sep 2010 01:01:18 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Sep 2010 01:01:18 +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; Sun, 12 Sep 2010 01:00:55 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8C10Xhc001872 for ; Sun, 12 Sep 2010 01:00:33 GMT Message-ID: <23153356.136741284253233518.JavaMail.jira@thor> Date: Sat, 11 Sep 2010 21:00:33 -0400 (EDT) From: "Thanh Do (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Reopened: (HDFS-1384) NameNode should give client the first node in the pipeline from different rack other than that of excludedNodes list in the same rack. In-Reply-To: <29233120.68471283911294766.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-1384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thanh Do reopened HDFS-1384: ---------------------------- Dhruba, I think I make a bad description of the bug. The excludedList does the job. But in this case, the excludedList contains only nodes from rack 0, and when client retries, NN give it the first dn in the pipe which is also in rack 0 too. Hence when client tries to create the pipe, it contacts the first dn and fails (because of network partition). So the problem here is that NN keeps giving client node that from the same rack (in this case, i.e rack 0). And because client cannot see any node in rack 0, it retries 5 times and fail. > NameNode should give client the first node in the pipeline from different rack other than that of excludedNodes list in the same rack. > --------------------------------------------------------------------------------------------------------------------------------------- > > Key: HDFS-1384 > URL: https://issues.apache.org/jira/browse/HDFS-1384 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 0.20-append, 0.20.1 > Reporter: Thanh Do > > We saw a case that NN keeps giving client nodes from the same rack, hence an exception > from client when try to setup the pipeline. Client retries 5 times and fails. > > Here is more details. Support we have 2 rack > - Rack 0: from dn1 to dn7 > - Rack 1: from dn8 to dn14 > Client asks for 3 dns and NN replies with dn1, dn8 and dn9, for example. > Because there is network partition, so client doesn't see any node in Rack 0. > Hence, client add dn1 to excludedNodes list, and ask NN again. > Interestingly, NN picks a different node (from those in excludedNodes) in Rack 0, > and gives back to client, and so on. Client keeps retrying and after 5 times of retrials, > write fails. > 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.